<div dir="ltr">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><div class="gmail_extra"><div class="gmail_quote"><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 class=""><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><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>