Skip to content

Conversation

Darshan808
Copy link

Fixes #1433

Summary

Fixes issue where display outputs (plots) were not included when using %notebook magic to save session as .ipynb file.

Changes

  • Modified ZMQDisplayPublisher.publish() to store display data in history_manager.outputs
  • Added test to verify display outputs are stored in history

@Darshan808
Copy link
Author

Darshan808 commented Sep 26, 2025

Would it make sense to bump the IPython version to >9.1.0 (where HistoryOutput was introduced), or should we instead import HistoryOutput in try block?

@krassowski
Copy link
Member

I think a conditional block (could be conditional on version) would be preferred, especially because it would be great to backport to 6.x branch.

@krassowski
Copy link
Member

Kicking CI

@krassowski krassowski closed this Sep 30, 2025
@krassowski krassowski reopened this Sep 30, 2025
@krassowski krassowski closed this Oct 2, 2025
@krassowski krassowski reopened this Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Published display outputs are not included in %notebook magic
2 participants