[IPython-dev] cell magics

Thomas Kluyver takowl@gmail....
Sat Feb 16 19:35:01 CST 2013


On 17 February 2013 01:26, Jason Grout <jason-sage@creativetrax.com> wrote:

> If you were going to use the name and the value, it would make sense to do:
>
> %R(input=['myvar'])
>

Yep, that's functionally equivalent to what we do at present.


>  or even
>
> %R(input='myvar')
>

The list was to allow for multiple variables. You could have a special
cased isinstance(input, str), but it's a bit unpythonic.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130217/3e28594f/attachment.html 


More information about the IPython-dev mailing list