title: image does not display in ipython
body: <p>The image does not load if it is part of a while loop. For e.g. the following works as expected:</p>
  
  <pre><code>from IPython.display import Image
  Image(filename='someimage.jpg')
  </code></pre>
  
  <p>But this does not work:</p>
  
  <pre><code>while True:
      Image(filename='someimage.jpg')
      break
  </code></pre>
  
  <p>update:</p>
  
  <p>How do I display several images from a list?</p>