[IPython-User] Calling 'Image' several times in the same cell
Ariel Rokem
arokem@gmail....
Tue Nov 13 14:18:34 CST 2012
Hi everyone,
Working in the notebook (on a recent github HEAD), I am trying to loop over
a list of png file names and call Image on each one of them so that the
output of that cell would ideally look something like:
figure1
figure2
...etc.
I am doing that by calling the following code:
from IPython.display import Image
for l in os.listdir('.'):
if l.endswith('.png'):
Image(filename=l)
But I am getting no output. In a following cell, I just do:
Image(filename=l)
And that works just fine - I get a display of the last file in that list.
Any ideas? Thanks in advance!
Ariel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20121113/e1d63dea/attachment.html
More information about the IPython-User
mailing list