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

后端 未结 15 1212
天命终不由人
天命终不由人 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

    Here is a Solution for Jupyter and Python3:

    I droped my images in a folder named ImageTest. My directory is:

    C:\Users\MyPcName\ImageTest\image.png
    

    To show the image I used this expression:

    ![title](/notebooks/ImageTest/image.png "ShowMyImage")
    

    Also watch out for / and \

提交回复
热议问题