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
Using the notebook backend with %matplotlib notebook stores several outputs in the ipynb file: both javascript code and a png figure embedded in a html data object.
When you close a figure in the notebook, the interactive figure is replaced by a static image, and then seems to the user similar as to using %matplotlib inline (apart from the default resolution). But, in the notebook file itself, it still is a javascript + html output and not a png image as with the inline backend.
I was wondering if it would be possible/desirable to also have the data that is stored in the notebook file be converted to a 'real' image ("image/png") when the figure is closed.
This question comes from two drawbacks I noticed with the current situation when using %matplotlib notebook:
The javascript 'clutters' the notebook file: the notebook format is already not friendly to diffs, but this makes it even more difficult (the javascript takes a lot of lines, while the image itself is only 1 line). Once, the figure is closed, I don't think the javascript is still useful?
Figures that are created with the notebook backend will not be visible for untrusted notebooks (so eg every notebook that you get from somebody else has first be trusted before you can see the figures in the notebook)
Note: I am not familiar with the backend stuff and the ipython comms, so I don't know this is even possible.
The text was updated successfully, but these errors were encountered:
tacaswell
added this to the
proposed next point release (2.1) milestone
Oct 10, 2015
Using the notebook backend with
%matplotlib notebook
stores several outputs in the ipynb file: both javascript code and a png figure embedded in a html data object.When you close a figure in the notebook, the interactive figure is replaced by a static image, and then seems to the user similar as to using
%matplotlib inline
(apart from the default resolution). But, in the notebook file itself, it still is a javascript + html output and not a png image as with the inline backend.I was wondering if it would be possible/desirable to also have the data that is stored in the notebook file be converted to a 'real' image ("image/png") when the figure is closed.
This question comes from two drawbacks I noticed with the current situation when using
%matplotlib notebook
:Note: I am not familiar with the backend stuff and the ipython comms, so I don't know this is even possible.
The text was updated successfully, but these errors were encountered: