Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JupyterLab: How to save a figure from the notebook

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:

enter image description here

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

like image 630
foglerit Avatar asked Sep 23 '17 14:09

foglerit


People also ask

How do you save an image in Jupyter lab?

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. Thanks (+1) for your answer.

How do I copy a figure from Jupyter lab?

Hold down shift while right-clicking the plot. Select "Copy image"


1 Answers

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

like image 200
foglerit Avatar answered Sep 22 '22 16:09

foglerit