title: How to generate an animation with images in subplots (matplotlib)
body: <p>Is possible to animate pairs of images in a jupyter notebook?</p>
  
  <p>With two lists of images:</p>
  
  <pre><code>greys = io.imread_collection(path_greys)
  grdTru= io.imread_collection(path_grdTru)
  </code></pre>
  
  <p>The following naïve code fails to generate an animation:</p>
  
  <pre><code>for idx in range(1,900):
      plt.subplot(121)
      plt.imshow(greys[idx], interpolation='nearest', cmap=plt.cm.gray)
      plt.subplot(122)
      plt.imshow(grdTru[idx], interpolation='nearest', cmap=plt.cm.,vmin=0,vmax=3)
      plt.show()
  </code></pre>
  
  <p>(It generates a list of subplots)</p>
  
  <p>By the way,the <a href="http://matplotlib.org/examples/animation/dynamic_image.html" rel="nofollow noreferrer">example found in matplotlib</a> doc failed if pasted in a notebook.</p>