[IPython-dev] Cell Magic names

MinRK 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
> etc..
>
> 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.

-MinRK


>
> Cheers,
>
> f
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120601/0e4a3aa1/attachment.html>


More information about the IPython-dev mailing list