title: How to make IPython notebook matplotlib plot inline
body: <p>I am trying to use IPython notebook on MacOS X with Python 2.7.2 and IPython 1.1.0.</p>
  
  <p>I cannot get matplotlib graphics to show up inline.</p>
  
  <pre><code>import matplotlib
  import numpy as np
  import matplotlib.pyplot as plt
  %matplotlib inline  
  </code></pre>
  
  <p>I have also tried <code>%pylab inline</code> and the ipython command line arguments <code>--pylab=inline</code> but this makes no difference.</p>
  
  <pre><code>x = np.linspace(0, 3*np.pi, 500)
  plt.plot(x, np.sin(x**2))
  plt.title('A simple chirp')
  plt.show()
  </code></pre>
  
  <p>Instead of inline graphics, I get this:</p>
  
  <pre><code>&lt;matplotlib.figure.Figure at 0x110b9c450&gt;
  </code></pre>
  
  <p>And <code>matplotlib.get_backend()</code> shows that I have the <code>'module://IPython.kernel.zmq.pylab.backend_inline'</code> backend.</p>