Jupyter Notebook: How to copy paste image into MS word?

北城以北 提交于 2019-12-07 08:07:37

问题


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:


You can drag the image on to OneNote and from there your copy/paste options are available for transfer into Word.




回答3:


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:


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:


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.



来源:https://stackoverflow.com/questions/37313128/jupyter-notebook-how-to-copy-paste-image-into-ms-word

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!