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:
<img src="image.png" height=50> <-- 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:
<img src="image.png" style="height:50px"> <-- works