[IPython-User] iPython notebook and statements that span multiple lines

William Furnass will@thearete.co...
Mon Nov 12 04:48:44 CST 2012

I'm wanting to use the 'timeit' and 'prun' magic commands in ipython
notebook 0.13.1 to profile multi-line statements.  Attempts to do this
cause 'Unexpected indent errors to be thrown up though:

In [3]:

%timeit -r1 -n1 x = [1,2,3]

1 loops, best of 1: 2.15 us per loop

In [4]:

%timeit x = [1,



IndentationError: unexpected indent

Is this a bug or am I missing something obvious here?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20121112/f77fe238/attachment.html 

More information about the IPython-User mailing list