title: Can you capture the output of ipython's magic methods? (timeit)
body: <p>I want to capture and plot the results from 5 or so <code>timeit</code> calls with logarithmically increasing sizes of <em>N</em> to show how <code>methodX()</code> scales with input.</p>
  
  <p>So far I have tried:</p>
  
  <pre><code>output = %timeit -r 10 results = methodX(N)
  </code></pre>
  
  <p>It does not work...</p>
  
  <p>Can't find info in the docs either.  I feel like you should be able to at least intercept the string that is printed.  After that I can parse it to extract my info.</p>
  
  <p>Has anyone done this or tried?</p>
  
  <p>PS: this is in an ipython notebook if that makes a diff.</p>