[IPython-user] python vs. ipython

Ville Vainio vivainio at gmail.com
Wed Feb 1 07:06:44 CST 2006


On 2/1/06, Peter Teuben <teuben at astro.umd.edu> wrote:

> 2) bug:   If one does
>
>         ipython script a b c
>
> then it works ok, sys.argv[] is now [script,....]
>
> but if one does
>
>         ipython script -a b c

Ok, I this doesn't need correcting.

The correct format is:

ipython -p pysh -- myscript.py -foo -bar

The '--' terminates the options list for ipython, after which arguments start.

This just needs to be documented.

--
Ville Vainio - http://tinyurl.com/2prnb
http://vainio.blogspot.com - g[mail | talk]='vivainio'




More information about the IPython-user mailing list