[IPython-dev] rmagic in notebook

Thomas Kluyver takowl@gmail....
Sun Dec 2 13:14:23 CST 2012


Thanks Satra,

On 2 December 2012 18:50, Satrajit Ghosh <satra@mit.edu> wrote:

> the invalid syntax came from using %R instead of %%R with multiline code -
> we could perhaps improve the error message.
>

As with lots of error messages, the trick is working out what the user
meant - %R is perfectly valid as a line magic, after all. %R could raise an
error if it gets no arguments, but a SyntaxError like the one you saw will
be raised when we try to parse the cell, which is before line magics get
called.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20121202/20205a52/attachment.html 


More information about the IPython-dev mailing list