I&#39;m wanting to use the &#39;timeit&#39; and &#39;prun&#39; magic commands in ipython notebook 0.13.1 to profile multi-line statements.  Attempts to do this cause &#39;Unexpected indent errors to be thrown up though:<br>
<br><div tabindex="2" class=""><div class=""><div class="">In [3]:</div><div class=""><div class=""><div style="overflow:hidden;width:3px;height:0px"><textarea style="padding:0px;width:1px;height:1em"></textarea></div><div class="" tabindex="-1">
<div style="height:29.6px"><div style><div class=""><div style="outline:medium none"><div style="width:100%;height:0px;overflow:hidden"><pre><span class=""></span><span class=""></span><span class=""></span><span class=""></span><span class=""></span><span class=""></span><span id="CodeMirror-temp-84f985"></span></pre>
</div><div style><pre><span class="">%</span><span class="">timeit</span> <span class="">-</span><span class="">r1</span> <span class="">-</span><span class="">n1</span> <span class="">x</span> = [<span class="">1</span>,<span class="">2</span>,<span class="">3</span>]</pre>
</div></div></div></div></div></div></div></div></div><div class=""><div style="display:-moz-box" class=""><div class=""><div class=""><pre>1 loops, best of 1: 2.15 us per loop
</pre></div></div></div></div></div><div class=""><div class="">In [4]:</div><div class=""><div class=""><div style="overflow:hidden;width:3px;height:0px"><textarea style="padding:0px;width:1px;height:1em"></textarea></div>
<div class="" tabindex="-1"><div style="height:64.8px"><div style><div class=""><div style="outline:medium none"><div style="width:100%;height:0px;overflow:hidden"><pre><span class=""></span><span id="CodeMirror-temp-ff7913"></span></pre>
</div><div style><pre><span class="">%</span><span class="">timeit</span> <span class="">x</span> = [<span class="">1</span>,</pre><pre>             <span class="">2</span>,</pre><pre>             <span class="">3</span>] </pre>
</div></div></div></div></div></div></div></div></div><div style="display:-moz-box" class=""><div class=""><div class=""><pre><span class="">IndentationError</span><span class="">:</span> unexpected indent


<br>Is this a bug or am I missing something obvious here?<br><br>Cheers,<br><br>Will<br></pre></div></div></div><br>