Hi everyone, <div><br></div><div>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: </div>
<div><br></div><div>figure1 <br></div><div>figure2<br></div><div><br></div><div>...etc. <br></div><div><br></div><div>I am doing that by calling the following code: </div><div><br></div><div>from IPython.display import Image</div>
<div><div>for l in os.listdir('.'):</div><div> if l.endswith('.png'):</div><div> Image(filename=l)<br></div></div><div><br></div><div>But I am getting no output. In a following cell, I just do: </div>
<div><br></div><div>Image(filename=l)<br></div><div><br></div><div>And that works just fine - I get a display of the last file in that list. </div><div><br></div><div>Any ideas? Thanks in advance! </div><div><br></div><div>
Ariel </div><div><br></div>