There are several ways to place an image in Jupyter notebooks:
via HTML:
from IPython.display import Image from IPython.core.display import HTML Image(url= "http://my_site.com/my_picture.jpg")
You retain the ability to use HTML tags to resize, etc.
Image(url= "http://my_site.com/my_picture.jpg", width=100, height=100)
You can also display images stored locally, either by relative or by absolute path.
PATH = "/Users/reblochonMasque/Documents/Drawings/" Image(filename = PATH + "My_picture.jpg", width=100, height=100)
if the image is wider than the display settings: thanks
use unconfined=True to disable unconfined=True maximum image width
from IPython.core.display import Image, display display(Image('https://i.ytimg.com/vi/j22DmsZEv30/maxresdefault.jpg', width=1900, unconfined=True))
or through markdown:
(make sure the cell is a markdown cell, not a code cell, thanks @ 游 凯 超 in the comments)
for web image:

as shown by @cristianmtr Note that you do not use either the quotation mark "" or the one around the URL.
or local:

demonstrated by @Sebastian
Reblochon Masque Sep 03 '15 at 8:23 2015-09-03 08:23
source share