Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to PASTE image into Jupyter Notebook?

It is possible to include images in Jupyter notebook with various markup.

But is it possible to AUTOMATE this? I.e. I have image in clipboard, then I just press Ctrl-V and Jupyter server automatically takes this image, creates file in appropriate place and inserts markup for it.

I saw such things in Stackoverflow and JIRA.

like image 842
Dims Avatar asked Nov 20 '16 14:11

Dims


3 Answers

Juypter Notebook now supports this natively as of version 5.0.0. You should be able to upgrade Jupyter using pip:

pip install notebook --upgrade 

or conda:

conda upgrade notebook 

then you can simply drag-and-drop images into cells or paste them from your clipboard.

like image 113
lextoumbourou Avatar answered Sep 30 '22 07:09

lextoumbourou


Yes.

  1. Click the preferred cell that you want to paste the image into
  2. Enter markdown mode by pressing Esc then M
  3. Paste using Ctrl + V

Note: As @lextoumbourou suggested, ensure your notebook is up to date. I am using version 7.13.0. I checked version using conda list ipython

like image 34
PraveenHarris Avatar answered Sep 30 '22 05:09

PraveenHarris


Its simple, navigate to Markdown and simply drag and drop your image and hit enter

like image 24
valkyrie55 Avatar answered Sep 30 '22 06:09

valkyrie55