[IPython-dev] Cell Magic names
Sat Jun 2 00:25:03 CDT 2012
On Fri, Jun 1, 2012 at 9:56 PM, Fernando Perez <email@example.com> wrote:
> On Fri, Jun 1, 2012 at 9:52 PM, MinRK <firstname.lastname@example.org> wrote:
> > I was just going to call it `%%shebang`, I think `%%#!` is a few too many
> > special characters in a row.
> I guess you could just call it '!', and it would then be
> %%! bash
> Though regarding the shell stuff, I think I'd prefer this to be a
> *factory* that would return shell-like magics, so that we'd offer
> %%shell -> basically wrap around os.system()
> %%bash or %%sh -> explicitly call bash (only available on POSIX)
> %%cmd -> explicitly call CMD.EXE (on windows)
> %%powershell ? (don't know if it has a canonical shorthand).
> That seems like a more natural usage pattern to me.
I think there's space for both. I think this factory idea makes sense
(probably similar to the aliases list),
but I don't think there's a reason to *exclude* the generic case.
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev