Jupyter Notebook: How to copy paste image into MS

2019-05-14 13:52发布

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

enter image description here

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

enter image description here

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?

4条回答
【Aperson】
2楼-- · 2019-05-14 14:31

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

查看更多
孤傲高冷的网名
3楼-- · 2019-05-14 14:31

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.

查看更多
爷的心禁止访问
4楼-- · 2019-05-14 14:35

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.

查看更多
贪生不怕死
5楼-- · 2019-05-14 14:41

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.

查看更多
登录 后发表回答