[IPython-dev] how to run a script in empty name space?

Ville M. Vainio vivainio at gmail.com
Mon May 21 02:45:45 EDT 2007


On 5/20/07, tocer <tocer.deng at gmail.com> wrote:

> I do "run somescript.py" in IPython interpreter, then I print IPython
> interactive name space by doing "print dir()". I found the globle variants of
> the somescript.py is in it. But I wish it run in empty name space, not ipython
> name space. How can I do?

How about running them in a whole new process, i.e. 'python somescript.py'.

-- 
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'



More information about the IPython-dev mailing list