[IPython-dev] Cell Magic names
Sun Jun 3 14:36:43 CDT 2012
I'd suggest trying to make the interpreter used totally explicit for each
cell. I think notebook files should be readable as static HTML output
rather than full of stuff from the system it was written on.
Maybe have bookmarked interpreter paths so you can just do
if you ever wanted to.
On Jun 3, 2012 7:57 PM, "Hans Meine" <email@example.com> wrote:
> 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.
> Good point.
> 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…").
> 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".
> Best regards,
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev