[IPython-dev] Cell Magic names
Sun Jun 3 13:56:59 CDT 2012
Am Sonntag, 3. Juni 2012, 14:38:54 schrieb Thomas Kluyver:
> On 3 June 2012 01:54, Min RK <firstname.lastname@example.org> wrote:
> > I think script is probably best, and should then have a default
> > interpreter
> > of 'sh' (or $SHELL?).
> I'd lean towards not having a default, so if you come across a script
> cell, it's immediately clear what kind of script it is. Also, we aim
> to be cross platform, so requiring 'sh' or 'bash' is a clear reminder
> to the author that it won't work on Windows.
Interactively, I would rather like to have a default, but of course in a
notebook (or similar) I would go with the Zen ("explicit is better…"). Maybe
that explains the two opinions.
A solution could be to require a specification, but offer completion (e.g.
from /etc/shells, with $SHELL being the default)?
Also note that %%script could remind of the 'script' program, whose main
purpose is to copy(/tee) the fds 0,1,2 into a file. That 'script' also has a
default but allows selection with "-c command".
More information about the IPython-dev