[IPython-dev] Cell Magic names
Sat Jun 2 19:54:19 CDT 2012
I don't like lang, because it doesn't actually communicate what it does. For instance you could use it to select one of the half-dozen Pythons or venv-pythons, etc.
I agree that shebang is unclear to users who don't know what it means (and
is this probably a poor choice, but still my personal favorite, because I think it's fun), but it most accurately describes what the magic does (to the minority aware of the reference): run the rest of the cell with the *program* described on this line.
I think script is probably best, and should then have a default interpreter of 'sh' (or $SHELL?).
On Jun 2, 2012, at 12:30, Carl Smith <firstname.lastname@example.org> wrote:
> If the magic knows the installed interpreters and what not, couldn't you just do...
> %%lang bash
> echo hello world
> On Jun 2, 2012 8:24 PM, "Fernando Perez" <email@example.com> wrote:
> > On Sat, Jun 2, 2012 at 10:46 AM, Carl Smith <firstname.lastname@example.org> wrote:
> > > Just a thought: How about calling it lang?
> > lang or script both sound OK to me, and indeed I prefer them to
> > shebang, I concur with Thomas on this one.
> > Cheers,
> > f
> > _______________________________________________
> > IPython-dev mailing list
> > IPythonemail@example.com
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev