You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Published display outputs are not included in %notebook magic #1433
IPython 9.1 enhanced the %notebook magic so that the outputs are now stored too (ipython/ipython#14780). This allows users to spawn an ipython interpreter, a jupyter kernel, or jupyter console and later save their session to an .ipynb file for reference.
However, when using ipykernel (this is jupyter kernel, jupyter console and notebook interfaces) outputs generated via display publisher such as matplotlib plots are lost.
This is because the DisplayPublisher.publish() gets overridden by ipykernel in ZMQDisplayPublisher.publish() without calling the parent method, thus the code which was added in DisplayPublisher.publish():
Activity