These are chat archives for ipython/ipython

28th
Jan 2016
Gregory Nwosu
@gregnwosu
Jan 28 2016 11:57
im trying to display an image within a python notebook
i have the filename, and my code is as follows

import IPython.display as display

for image in os.listdir(folder):
display.Image(image)

indentation aside, does this look right?, the image is a png and im on macosx
Thomas Kluyver
@takluyver
Jan 28 2016 13:17
@gregnwosu display.Image() creates a displayable image object. You'll need to call IPython.display.display() to actually show it.
Gregory Nwosu
@gregnwosu
Jan 28 2016 14:24
thanks