<p>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. </p>
<p>Maybe have bookmarked interpreter paths so you can just do<br>
%%script perl<br>
if you ever wanted to.</p>
<div class="gmail_quote">On Jun 3, 2012 7:57 PM, "Hans Meine" <<a href="mailto:hans_meine@gmx.net">hans_meine@gmx.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am Sonntag, 3. Juni 2012, 14:38:54 schrieb Thomas Kluyver:<br>
> On 3 June 2012 01:54, Min RK <<a href="mailto:benjaminrk@gmail.com">benjaminrk@gmail.com</a>> wrote:<br>
> > I think script is probably best, and should then have a default<br>
> > interpreter<br>
> > of 'sh' (or $SHELL?).<br>
><br>
> I'd lean towards not having a default, so if you come across a script<br>
> cell, it's immediately clear what kind of script it is. Also, we aim<br>
> to be cross platform, so requiring 'sh' or 'bash' is a clear reminder<br>
> to the author that it won't work on Windows.<br>
<br>
Good point.<br>
<br>
Interactively, I would rather like to have a default, but of course in a<br>
notebook (or similar) I would go with the Zen ("explicit is better…").  Maybe<br>
that explains the two opinions.<br>
<br>
A solution could be to require a specification, but offer completion (e.g.<br>
from /etc/shells, with $SHELL being the default)?<br>
<br>
Also note that %%script could remind of the 'script' program, whose main<br>
purpose is to copy(/tee) the fds 0,1,2 into a file.  That 'script' also has a<br>
default but allows selection with "-c command".<br>
<br>
Best regards,<br>
  Hans<br>
<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</blockquote></div>