How to embed image or picture in jupyter notebook, either from a local machine or from a web resource?

后端 未结 15 1211
天命终不由人
天命终不由人 2020-11-30 16:12

I would like to include image in a jupyter notebook.

If I did the following, it works :

from IPython.display import Image
Image(\"img/picture.png\")
         


        
15条回答
  •  执念已碎
    2020-11-30 16:45

    One thing I found is the path of your image must be relative to wherever the notebook was originally loaded from. if you cd to a different directory, such as Pictures your Markdown path is still relative to the original loading directory.

提交回复
热议问题