[IPython-User] iPython notebook and statements that span multiple lines
Mon Nov 12 05:35:53 CST 2012
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User