title: How can I display an image from a file in Jupyter Notebook?
body: <p>I would like to use an <a href="http://ipython.org/notebook.html" rel="noreferrer">IPython notebook</a> as a way to interactively analyze some genome charts I am making with Biopython's <a href="http://biopython.org/DIST/docs/tutorial/Tutorial.html#sec329" rel="noreferrer"><code>GenomeDiagram</code></a> module. While there is extensive documentation on how to use <code>matplotlib</code> to get graphs inline in IPython notebook, GenomeDiagram uses the ReportLab toolkit which I don't think is supported for inline graphing in IPython. </p>
  
  <p>I was thinking, however, that a way around this would be to write out the plot/genome diagram to a file and then open the image inline which would have the same result with something like this:</p>
  
  <pre><code>gd_diagram.write("test.png", "PNG")
  display(file="test.png")
  </code></pre>
  
  <p>However, I can't figure out how to do this - or know if it's possible. So does anyone know if images can be opened/displayed in IPython?</p>