<div dir="ltr">Here&#39;s an example of an IPython notebook for CCTBX:<div><br></div><div><a href="http://nbviewer.ipython.org/github/zeldebeest/public-notebooks/blob/master/Clustering_basic.ipynb">http://nbviewer.ipython.org/github/zeldebeest/public-notebooks/blob/master/Clustering_basic.ipynb</a></div><div><br></div><div>Basically, it combines a notebook and an interactive python environment. Awesome times for command-line based analysis sessions, so you can keep track of everything you do, and easily share your work.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 8, 2014 at 2:36 PM, Nathaniel Echols <span dir="ltr">&lt;<a href="mailto:nechols@lbl.gov" target="_blank">nechols@lbl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="">On Mon, Sep 8, 2014 at 2:32 PM, Oliver Zeldin <span dir="ltr">&lt;<a href="mailto:zeldin@stanford.edu" target="_blank">zeldin@stanford.edu</a>&gt;</span> wrote:<br></span><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Now.. can we make it take arguments from the command line? This way we can do things like<div><br></div><div><font face="courier new, monospace">$libtbx.ipython notebook --matplotib</font></div><div><br></div><div>(or whatever)<br><div><br></div><div>For reference, the default ipython launcher does:</div><span><div><font face="courier new, monospace"><br></font></div><div><div><font face="courier new, monospace">import re<br></font></div><div><font face="courier new, monospace">import sys</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">from IPython import start_ipython</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">if __name__ == &#39;__main__&#39;:</font></div><div><font face="courier new, monospace">    sys.argv[0] = re.sub(r&#39;(-script\.pyw|\.exe)?$&#39;, &#39;&#39;, sys.argv[0])</font></div><div><font face="courier new, monospace">    sys.exit(start_ipython</font>())</div></div></span></div></div></blockquote><div><br></div></span><div>Ralf&#39;s launcher (libtbx/command_line/ipython_shell_start.py) is from 2007 and I don&#39;t know of anyone else using it, so feel free to modify it if you think it could be made more useful.</div><div><br></div><div>-Nat</div></div></div></div>
<br>_______________________________________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div>Dr. Oliver B. Zeldin<br></div>Brunger Group<br></div>Stanford University<br></div>
</div>