Source from here
Question
I would like to include image in a jupyter notebook. If I did the following, it works:
But I would like to include the images in a markdown cell. How to do it?
How-To
If your image file is in local, you can use below syntax:
which assumed that you have the following file structure and that you run the jupyter notebook command in the directory where the file
example.ipynb (<-- contains="" font="" for="" image="" markdown="" the="">) is stored: -->
Alternatively, you can use a plain HTML <img src/>, which allows you to change height and width and is still read by the markdown interpreter:
Question
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")
How-To
If your image file is in local, you can use below syntax:
- ![title](img/picture.png)
- /
- +-- example.ipynb
- +-- img
- +-- picture.png
- <image src="img/picture.png",width=60,height=60/>
沒有留言:
張貼留言