I'm trying to add an image to a markdown cell in my notebook. Previously, I'd been using:
from IPython.display import Image
Image(filename='/Users/nzhang/Desktop/DS/Python/images/imagename.jpeg', width=400, height=400)
That worked fine in code cells. However, I want to add an image to a markdown cell like this:

but I'm getting a thumbnail of a broken image in its place.
<img src="imagename.jpeg">
This works great in markdown cells. Please let me know if you have any other questions!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With