Jupyter Notebook: How to copy paste image into MS

2019-05-14 14:14发布

问题:

I tried to copy the image and paste them into MS word, but it didn't work.

I'm not sure if this is my problem, or the word's problem?

The images are at: https://cdn.rawgit.com/cqcn1991/Wind-Speed-Analysis/master/output_HTML/marham.html#5.3-Sectoral-Comaprison

The paste result (in MS Word), it's done by CTRL+C, CTRL+V:

I can only paste the text, not the image.

I experiment it with Medium and another web app. Medium works exactly like MS Word, while another is able to paste. I think the underlying problem may be that the image in Jupyter Notebook is too deep in divs? so it get escaped in Word?

回答1:

As per the issue you raised on github: https://github.com/jupyter/notebook/issues/1496

I can get this to work if after copying from the notebook I do Ctrl+Alt+V (shortcut for paste-special) and then select either "bitmap" or "device independent bitmap" from the dialog that pops up



回答2:

Apologies for posting on a dated thread but I was having a similar problem.

I had been using Jupyter in PyCharm and was unable to copy and paste it at all. I then found that if I opened the notebook in a browser (Chrome) using the localhost link then I could right click and copy and paste, or save, the image as you normally would be able to for any other.



回答3:

It is possible both on Jupyter lab and Jupyter notebook to right-click on the graph and save it in .png format. Then you could use the image elsewhere.



回答4:

Right click on the image in your Notebook and choose 'Save image as ...'. You may now insert the saved image in your MS word document.