[IPython-user] run/load a saved file

Fernando Perez Fernando.Perez at colorado.edu
Sun Jan 8 02:27:22 CST 2006

Rakotomandimby Mihamina wrote:
>>What's the "magic" to load a file? 
> %run filename

Yup, sorry I couldn't reply earlier.

Note that %run is quite a workhorse: it has hooks for timing your code, 
profiling it, running it via the python debugger, exception control, and more. 
  I personally use %run more than any other feature of ipython.  I think for 
any user of ipython, a few minutes reading the output of


will be time well spent.



More information about the IPython-user mailing list