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\")
In addition to the other answers using HTML (either in Markdown or using the %%HTML
magic:
If you need to specify the image height, this will not work:
<-- will not work
That is because the CSS styling in Jupyter uses height: auto
per default for the img
tags, which overrides the HTML height attribute. You need need to overwrite the CSS height
attribute instead:
<-- works