[IPython-dev] how to run a script in empty name space?
Ville M. Vainio
vivainio@gmail....
Mon May 21 12:53:32 CDT 2007
On 5/21/07, tocer <tocer.deng@gmail.com> wrote:
> Yes, but I can't take advantage of all property of IPython. In Ipython help
Yes you can, you can launch your script from ipython if you have
"python" available as an alias. Or do !python myscript.py
> documents, I found it in magic run command usage:
>
> -i: run the file in IPython's namespace instead of an empty one. This is useful
> if you are experimenting with code written in a text editor which depends on
> variables defined interactively.
Yes, this means the namespace won't be clean *in the beginning*.
Either way, it won't be clean in the end.
--
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
More information about the IPython-dev
mailing list