title: Control IPython Notebook layout of plots and other output
body: <p>When an IPython notebook has code in a cell like this:</p>
  
  <pre><code>display_html(HTML('Heading'))
  plt.plot(x,y)
  display_hmtl(HTML('Sub-heading'))
  plt.plot(x,y)
  </code></pre>
  
  <p>The output from the plots is always collected at the end, like</p>
  
  <pre><code>Heading
  Heading
  [first plot]
  [second plot]
  </code></pre>
  
  <p>How can the layout be controlled so the output is correctly interleaved?</p>
  
  <p>(I know I can put the code in separate cells, but I want to generate long reports by calling blocks of code iteratively)</p>