[IPython-User] iPython notebook and statements that span multiple lines
Mon Nov 12 12:02:04 CST 2012
Will this change at least for %timeit with the new ast transformation logic
On Mon, Nov 12, 2012 at 4:35 AM, Thomas Kluyver <firstname.lastname@example.org> wrote:
> On 12 November 2012 11:09, Will Furnass <email@example.com> 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 , but it will use explicit continuations with a backslash,
> rather than guessing when the command is complete.
>  https://github.com/ipython/ipython/pull/2447
> IPython-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User