[IPython-dev] Minus signs in argparse line magics
Fri Aug 10 22:35:57 CDT 2012
Can you add some logic that says as soon as the first character of an
argument is not -, then the rest should be interpreted as R code?
Obviously that won't work for something like %R -1, or even %R -X,
where X is an R variable and a real option, but it should handle cases
like this where the - clearly doesn't denote an option.
On Fri, Aug 10, 2012 at 9:08 PM, Fernando Perez <firstname.lastname@example.org> wrote:
> On Fri, Aug 10, 2012 at 4:09 PM, Thomas Kluyver <email@example.com> wrote:
>> However, in the case of rmagic:
>> - It's not much use without options to specify input & output variables
>> - Some uses can't easily be replaced by cell magics, for instance if
>> you want to call it in a (Python) loop.
> Indeed, and for this reason I don't really see any solution other than
> using the official `--` mechanism, as ugly as it may be in some cases.
> IPython-dev mailing list
More information about the IPython-dev