[cctbxbb] IPython with cctbx

Nathaniel Echols nechols at lbl.gov
Mon Sep 8 14:36:36 PDT 2014


On Mon, Sep 8, 2014 at 2:32 PM, Oliver Zeldin <zeldin at stanford.edu> wrote:

> Now.. can we make it take arguments from the command line? This way we can
> do things like
>
> $libtbx.ipython notebook --matplotib
>
> (or whatever)
>
> For reference, the default ipython launcher does:
>
> import re
> import sys
>
> from IPython import start_ipython
>
> if __name__ == '__main__':
>     sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
>     sys.exit(start_ipython())
>

Ralf's launcher (libtbx/command_line/ipython_shell_start.py) is from 2007
and I don't know of anyone else using it, so feel free to modify it if you
think it could be made more useful.

-Nat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20140908/645cd934/attachment.htm>


More information about the cctbxbb mailing list