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
Maybe its a design decision, but if I use %matplotlib ipympl in a notebook, there is no image of plots I've made is saved in the *.ipynb file as there was for nbagg. Thats a huge usability issue for me.
I think the cool thing about notebooks is being able to see the output of your work without having to re-run all the code, some of which may no longer work (data moved etc), so this is a pretty big reversion in functionality for me. It also kills the ability to quickly post onto GitHub or gist, and even save as html no longer has a plot. If this is to replace nbagg I hope the image saving gets added back in.
Of course, maybe I'm just doing something incorrectly. This was with master on matplotlib and master on ipympl. Jupyter-notebook = 5.0.0
Reacted by Valeriy Mukhtarulin, Simon May, Jason K. Moore, Robbi Bishop-Taylor, BrenBarn, Atma Mani, Benjamin Fry, Jochem Smit, Giulio Starace, Eric Wieser and 1 more
Just to add I think this is a key usability feature to match the "old" nbagg/notebook backend. Being able to reload an old notebook or see it on a plain html render with a static png is really important. In nbagg, the seamlessness of how it saved the last static render on figure/notebook close was wonderful.
Reacted by Falk Herwig, Simon May, Jochem Smit, Jason K. Moore, T. Emil Rivera-Thorsen, Pavol Harar, BrenBarn, Atma Mani and mueslo
@fperez : I agree - notebook is an excellent way to document your work, but to use it as such it must be possible to quickly load the notebook and figures without re-running a possibly time consuming analysis.
Hi, I recently made the conversion from %matplotlib notebook to import ipympl, and have it working well ... but am sad to find out there is currently no way to “embed” a static version of whatever figures are in the notebook, for quick and easy viewing on GitHub.
A button with a caption like “embed current figure view as inline PNG” or something to that effect I think is plenty descriptive for users.
Hi, just wondering if this has any chance to be updated soonish? It is a pain point not to be able to quickly view the resulting plots from a notebook's full run (which takes several hours...) on GitHub.
Is there any workaround? Even taking a screenshot, saving as .png, and being able to use some code to embed that? The plotting "widget" works great ... just have lost this really key feature ...
Hi @blink1073 ,
Sorry to be a pest, but I do see new versions of matplotlib uploaded to pypi on Jan 21 and ipywidgets & widgetsnbextension uploaded onJan 24 ... but no new version of ipympl since Nov.
I did upgrade to the new versions of previously mentioned, but still no embedding of static image of plot figures saved in the notebook.
I used %matplotlib notebook with Python 2.7 forever, and it worked great. But then I decided to upgrade everything to Python 3.6, which is what I'm sticking with going forward. After that upgrade, %matplotlib notebook stopped working so well (it was glitchy). I found a GitHub issues thread (think it was for Notebook) that sounded a lot like my issue, and in there they were saying that they wanted to start pushing users to ipympl. So I made that switch, and it works great .... just can't embed a static .png of the figure view into the notebook anymore for quick recall/viewing on GitHub (or when you first load a notebook).
Yes, as that discussion elaborates, having a checkbox is a much cleaner UX than the current classic notebook widgets menu. That's why we architected JupyterLab to enable such a checkbox.
Would you be fine if I try opening a PR in the widgetsnbextension (I guess this would be the right place?) changing the "Save widgets state" button into a checkbox?
think an entire dataset for ipyvolume, for example
Another usecase I can see coming up a lot is the new file upload widget - people upload a file, then save their notebook, and wonder why the entire contents of the file is saved in base64 with the notebook. That could introduce security issues as well - I bet most people wouldn't realize that saving widget state includes the entire contents of that uploaded file.
Would you be fine if I try opening a PR in the widgetsnbextension (I guess this would be the right place?) changing the "Save widgets state" button into a checkbox?
Sure! I delved into a bit a long time ago (I think I mentioned this on the other thread), and came away with the conclusion that it was a deeper dive into the classic notebook javascript to enable a save hook than I wanted to do at the time.
That could introduce security issues as well - I bet most people wouldn't realize that saving widget state includes the entire contents of that uploaded file.
So maybe the checkbox should not be checked by default... I guess this is the choice you've made in JupyterLab?
And maybe we should put a warning in the ipywidgets documentation concerning the FileUpload widget, saying that it might save the file content on the server.
So maybe the checkbox should not be checked by default... I guess this is the choice you've made in JupyterLab?
Yes, that is the choice in JupyterLab - no saving by default.
And maybe we should put a warning in the ipywidgets documentation concerning the FileUpload widget, saying that it might save the file content on the server.
Great idea - it might save uploaded file content in the notebook if widget state is saved.
What would be the the way to save this checkbox state from one Notebook session to the other? Is there a kind-of cookie saved by the widgetsnbextension where I can save its state?
What is the status of this? It appears to be a major regression from %matplotlib notebook. If plots aren't saved in the notebook, it can't be effectively shared, making it nearly useless. Shouldn't this be a top priority?
Reacted by Ioannis Valasakis, Denis Korolkov, George Holt, Christian Rohlfing, German and Giulio Starace
I think stop button #176 is already enough as a first step. It would be nice to have it as soon as possible. It is easier to press stop buttons in all figures in a notebook and convert it to html rather than making a screenshot for every plot manually.
Reacted by Falk Herwig, T. Emil Rivera-Thorsen, dddping and Christian Rohlfing
Is there any update to this issue? This majorly undermines the usability of Lab in many cases.
Reacted by T. Emil Rivera-Thorsen, BrenBarn, Christian Rohlfing, jsmith04, Jamil Appa, Jan Neumann, Alex Kaszynski, Noé Brucy, tecamenz, Giulio Starace and 2 more
Just following up to ask if there is an update on this.
Being able to view figures in a notebook that was saved, without re-running the notebook is being requested by many users of our library.
Thanks!
Activity
SylvainCorlay commentedon Aug 14, 2017
As of ipywidgets 7.0, widgets become regular output, and the live version will just be an item in the mime bundle.
With the matplotlib widget, we can certainly add an image in the mime bundle for the figure.
At jupytercon next week, we plan on doing some iterations on ipympl.
fperez commentedon Dec 11, 2017
Just to add I think this is a key usability feature to match the "old" nbagg/notebook backend. Being able to reload an old notebook or see it on a plain html render with a static png is really important. In nbagg, the seamlessness of how it saved the last static render on figure/notebook close was wonderful.
gregerspoulsen commentedon Dec 18, 2017
@fperez : I agree - notebook is an excellent way to document your work, but to use it as such it must be possible to quickly load the notebook and figures without re-running a possibly time consuming analysis.
tylerlekang commentedon Dec 20, 2017
Hi, I recently made the conversion from %matplotlib notebook to import ipympl, and have it working well ... but am sad to find out there is currently no way to “embed” a static version of whatever figures are in the notebook, for quick and easy viewing on GitHub.
A button with a caption like “embed current figure view as inline PNG” or something to that effect I think is plenty descriptive for users.
Thank you!
tylerlekang commentedon Jan 16, 2018
Hi, just wondering if this has any chance to be updated soonish? It is a pain point not to be able to quickly view the resulting plots from a notebook's full run (which takes several hours...) on GitHub.
Is there any workaround? Even taking a screenshot, saving as .png, and being able to use some code to embed that? The plotting "widget" works great ... just have lost this really key feature ...
blink1073 commentedon Jan 17, 2018
Hi @tylerlekang, I plan to implement this feature next week at the Jupyter Widget author workshop.
tylerlekang commentedon Jan 26, 2018
Hi @blink1073 ,
Sorry to be a pest, but I do see new versions of matplotlib uploaded to pypi on Jan 21 and ipywidgets & widgetsnbextension uploaded onJan 24 ... but no new version of ipympl since Nov.
I did upgrade to the new versions of previously mentioned, but still no embedding of static image of plot figures saved in the notebook.
Would definitely appreciate it! Thank you sir! :)
blink1073 commentedon Jan 28, 2018
@tylerlekang, I got caught up working on JupyterLab itself during the workshop and did not get a chance to work on this.
tylerlekang commentedon Jan 29, 2018
Thank you for the update. Any workaround until the new feature available?
jklymak commentedon Jan 29, 2018
Doesn't
%matplotlib notebookwork, or do you need something specific from the new backend?tylerlekang commentedon Jan 29, 2018
I used %matplotlib notebook with Python 2.7 forever, and it worked great. But then I decided to upgrade everything to Python 3.6, which is what I'm sticking with going forward. After that upgrade, %matplotlib notebook stopped working so well (it was glitchy). I found a GitHub issues thread (think it was for Notebook) that sounded a lot like my issue, and in there they were saying that they wanted to start pushing users to ipympl. So I made that switch, and it works great .... just can't embed a static .png of the figure view into the notebook anymore for quick recall/viewing on GitHub (or when you first load a notebook).
28 remaining items
jasongrout commentedon Feb 27, 2020
Yes, as that discussion elaborates, having a checkbox is a much cleaner UX than the current classic notebook widgets menu. That's why we architected JupyterLab to enable such a checkbox.
martinRenou commentedon Feb 27, 2020
Would you be fine if I try opening a PR in the
widgetsnbextension(I guess this would be the right place?) changing the "Save widgets state" button into a checkbox?jasongrout commentedon Feb 27, 2020
Another usecase I can see coming up a lot is the new file upload widget - people upload a file, then save their notebook, and wonder why the entire contents of the file is saved in base64 with the notebook. That could introduce security issues as well - I bet most people wouldn't realize that saving widget state includes the entire contents of that uploaded file.
jasongrout commentedon Feb 27, 2020
Sure! I delved into a bit a long time ago (I think I mentioned this on the other thread), and came away with the conclusion that it was a deeper dive into the classic notebook javascript to enable a save hook than I wanted to do at the time.
jasongrout commentedon Feb 27, 2020
See jupyter-widgets/ipywidgets#2012 for my previous attempt.
martinRenou commentedon Feb 27, 2020
Thanks! I will look into it.
So maybe the checkbox should not be checked by default... I guess this is the choice you've made in JupyterLab?
And maybe we should put a warning in the ipywidgets documentation concerning the
FileUploadwidget, saying that it might save the file content on the server.jasongrout commentedon Feb 27, 2020
Yes, that is the choice in JupyterLab - no saving by default.
Great idea - it might save uploaded file content in the notebook if widget state is saved.
martinRenou commentedon Feb 27, 2020
What would be the the way to save this checkbox state from one Notebook session to the other? Is there a kind-of cookie saved by the widgetsnbextension where I can save its state?
BrenBarn commentedon Apr 4, 2020
What is the status of this? It appears to be a major regression from
%matplotlib notebook. If plots aren't saved in the notebook, it can't be effectively shared, making it nearly useless. Shouldn't this be a top priority?pyfrid commentedon May 11, 2020
I think stop button #176 is already enough as a first step. It would be nice to have it as soon as possible. It is easier to press stop buttons in all figures in a notebook and convert it to html rather than making a screenshot for every plot manually.
georgeholt1 commentedon Sep 8, 2020
Is there any update to this issue? This majorly undermines the usability of Lab in many cases.
martinRenou commentedon Jan 16, 2021
Trying another approach in #294, as discussed in #150
nvaytet commentedon Aug 16, 2021
Just following up to ask if there is an update on this.
Being able to view figures in a notebook that was saved, without re-running the notebook is being requested by many users of our library.
Thanks!
martinRenou commentedon Sep 21, 2021
This is fixed in #343