[IPython-user] New feature: %run myscript.ipy
Ville M. Vainio
vivainio at gmail.com
Tue Dec 12 16:05:04 CST 2006
Now (rev ), if you pass a file that ends with .ipy to %run, the
file is run as if the lines were typed into the ipython session -
i.e., magics and other prefilters ara honored. This is like running
"ipython myscript.ipy", with the difference that it happens in the
current ipython shell:
[test]|60> cat test_ihist.ipy
assert _ == 3
[test]|61> %run test_ihist.ipy
(note the input history numbers).
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
More information about the IPython-user