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

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

    I'm surprised no one here has mentioned the html cell magic option. from the docs (IPython, but same for Jupyter)

    %%html

    Render the cell as a block of HTML
    

提交回复
热议问题