5

Using Jupyter Lab, I have some images output from matplotlib. I would like to copy the image. How can I do this?

Things that do not work:

  1. Right-click->Save Image As..., or Copy Image
  2. Right-click->Copy Cells
  3. Select the image, press Command-C
  4. Select the output cell, press Command-C
  5. Drag and drop the image (though when you drag it it does correctly show the preview of the image under the mouse cursor).
7
  • Screenshot the image? – Darius Mar 15 '18 at 10:05
  • 1
    Yeah obviously I had thought of that, but that a) is tedious, b) doesn't get you consistent borders and c) is difficult if you have an image larger than the window. – Timmmm Mar 15 '18 at 10:08
  • Also you don't get transparency (not sure if Mac copy/paste supports that though - Windows definitely doesn't). – Timmmm Mar 15 '18 at 10:12
  • Saw this on SO - stackoverflow.com/questions/46380569/… - I don't use Jupyter/python so I can't say I've tested it. – Darius Mar 15 '18 at 10:13
  • 1
    @Timmmm: It seems like on even-numbered days, Stack Overflow tolerates questions that belong on Super User and are not programming-related (and on odd-numbered days, they close them, and on prime-numbered days, they migrate the questions here). – Scott Mar 17 '18 at 3:55
7

User foglerit asked a very similar question on Stack Overflow, and posted (and accepted) the following answer:

I found 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.