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

Aaron Meurer asmeurer@gmail....
Mon Nov 12 12:02:04 CST 2012

Will this change at least for %timeit with the new ast transformation logic
from https://github.com/ipython/ipython/pull/2301?

Aaron Meurer

On Mon, Nov 12, 2012 at 4:35 AM, Thomas Kluyver <takowl@gmail.com> wrote:

> On 12 November 2012 11:09, Will Furnass <will@thearete.co.uk> wrote:
>> Ah, thanks.  Would it not make more sense for the line-level magic
>> functions to continue parsing lines until all parentheses have been
>> matched i.e. only operate on one or more complete statements?
> Yes and no. Most magic functions aren't Python code, so it wouldn't make
> sense to handle them as Python syntax.
> There's a patch in the works that will let you spread a line magic over
> several lines [1], but it will use explicit continuations with a backslash,
> rather than guessing when the command is complete.
> [1] https://github.com/ipython/ipython/pull/2447
> Thomas
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20121112/49988a85/attachment-0001.html 

More information about the IPython-User mailing list