[IPython-dev] Cell Magic names
benjaminrk at gmail.com
Sat Jun 2 01:25:03 EDT 2012
On Fri, Jun 1, 2012 at 9:56 PM, Fernando Perez <fperez.net at gmail.com> wrote:
> On Fri, Jun 1, 2012 at 9:52 PM, MinRK <benjaminrk at gmail.com> 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
> IPython-dev at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev