JupyterLab: How to save a figure from the notebook

霸气de小男生 提交于 2021-02-17 21:07:28

问题


I'm trying the new JupyterLab and am having trouble saving figures. Using vanilla Jupyter notebooks, I can two-fingers click (using macOS, Safari or Chrome) and I get a browser menu that allows me to copy or save the figure.

In JupyterLab, this menu is replaced by notebook specific one with cell-related functions, as seen here:

Is there a way I can save a figure directly from the notebook in JupyterLab?


回答1:


Following the suggestion from @Matt, I opened an issue in GitHub and got the answer: the old menu is available by holding down Shift while doing a two-fingers click on a Mac, or doing a Shift + right-click on Linux/windows

Source: https://github.com/jupyterlab/jupyterlab/issues/3043#event-1272299457




回答2:


Shift + Right click works well (as foglerit mentioned).

Another alternative is to right on the output of a cell and select Create New View for Output. This will allow you to interact with all figures from an output as if they were just images.



来源:https://stackoverflow.com/questions/46380569/jupyterlab-how-to-save-a-figure-from-the-notebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!