Following up on this thread, I was wondering if this can be made secure? <div><br></div><div>I want to do the same thing (execute some cells, retrieve the outputs) but perhaps keep the kernelmanager instance around so that I might pass things to it later.<div>
<div><br></div><div>Thanks for your help.</div><div><br><div class="gmail_quote">On Fri, Jun 8, 2012 at 1:10 AM, Jonathan Taylor <span dir="ltr"><<a href="mailto:jonathan.taylor@stanford.edu" target="_blank">jonathan.taylor@stanford.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Min, this is perfect. I modified it to just execute and save the results:<div><br></div><div><a href="https://gist.github.com/2894405" target="_blank">https://gist.github.com/2894405</a><div>
<div class="h5"><br><br><div class="gmail_quote">On Thu, Jun 7, 2012 at 9:02 PM, MinRK <span dir="ltr"><<a href="mailto:benjaminrk@gmail.com" target="_blank">benjaminrk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br><div class="gmail_quote"><div>On Thu, Jun 7, 2012 at 8:56 PM, Fernando Perez <span dir="ltr"><<a href="mailto:fperez.net@gmail.com" target="_blank">fperez.net@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Thu, Jun 7, 2012 at 1:30 AM, Jonathan Taylor<br>
<<a href="mailto:jonathan.taylor@stanford.edu" target="_blank">jonathan.taylor@stanford.edu</a>> wrote:<br>
> Just wondering if it's possible to effectively "run all" then "save" on an<br>
> .ipynb file<br>
> from the command line.<br>
<br>
</div>I think Min has some utilities to roughly do that, he mentioned it<br>
today. Min, is that stuff available somewhere?<br></blockquote><div><br></div></div><div>The simple examples I tossed together were:</div><div><br></div><div>this one for running a notebook and checking for exceptions: <a href="https://gist.github.com/2620876" target="_blank">https://gist.github.com/2620876</a></div>
<div>and this one for a crude approximation of doctesting: <a href="https://gist.github.com/2620735" target="_blank">https://gist.github.com/2620735</a></div><div><br></div><div>They do not *save* the resulting notebook, but that shouldn't be much work beyond what is already there.</div>
<div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
f<br>
_______________________________________________<br>
IPython-User mailing list<br>
<a href="mailto:IPython-User@scipy.org" target="_blank">IPython-User@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
</blockquote></div></div><br>
<br>_______________________________________________<br>
IPython-User mailing list<br>
<a href="mailto:IPython-User@scipy.org" target="_blank">IPython-User@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><div class="im">-- <br>Jonathan Taylor <br>Dept. of Statistics <br>Sequoia Hall, 137 <br>
390 Serra Mall<br>
Stanford, CA 94305<br>Tel: <a href="tel:650.723.9230" value="+16507239230" target="_blank">650.723.9230</a><br>Fax: <a href="tel:650.725.8977" value="+16507258977" target="_blank">650.725.8977</a><br>Web: <a href="http://www-stat.stanford.edu/~jtaylo" target="_blank">http://www-stat.stanford.edu/~jtaylo</a><br>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Jonathan Taylor <br>Dept. of Statistics <br>Sequoia Hall, 137 <br>390 Serra Mall<br>Stanford, CA 94305<br>
Tel: 650.723.9230<br>Fax: 650.725.8977<br>Web: <a href="http://www-stat.stanford.edu/~jtaylo">http://www-stat.stanford.edu/~jtaylo</a><br>
</div></div></div>