[SciPy-user] Ipython "run"

Howey, David A d.howey at imperial.ac.uk
Fri Jul 29 06:16:29 CDT 2005

Perhaps someone could share their experience using the magic command
%run in Ipython? I'm just testing it out, and unfortunately it doesn't
seem to do a full reload of all imported modules etc. IDLE's <F5>, on
the other hand, does. This is annoying!
Any tips?

-----Original Message-----
From: scipy-user-bounces at scipy.net [mailto:scipy-user-bounces at scipy.net]
On Behalf Of Fernando Perez
Sent: 13 July 2005 17:42
To: SciPy Users List
Subject: Re: [SciPy-user] wxpython

Howey, David A wrote:
> yeah, I've got it running in colour.. I just meant the 'inline' colour

> changes as you type
> also, what editor do you use with ipython? I quite liked the idle 
> built in editor

You can use any editor you want, as ipython has very poor editing
capabilities (limited to single-line changes).  Some users like to call
%edit with ipython, which will invoke your $EDITOR, try %edit? for more

I personally don't like %edit, and my normal modus operandi is to run
Xemacs with my files open, along with an ipython session where I use
'%run foo' over and over as I modify the file foo.py.  I find this to be
a good balance: I get a good editor for the heavy lifting, and in the
interactive ipython session I get good tracebacks, %pdb debugging, the
ability to inspect objects resulting from my runs, and no expensive
reinitialization of the interpreter for each test (this can be a HUGE
deal if you are using complex/large libraries like scipy or VTK).



SciPy-user mailing list
SciPy-user at scipy.net

More information about the SciPy-user mailing list