![](https://secure.gravatar.com/avatar/4dabc91d1db962b0d8cd632c4e0f37ae.jpg?s=120&d=mm&r=g)
If you only want to reload one or two modules that you are developing, you can try two approaches. One is to use the %macro command to combined reload with run. The other is to hard code into your scripts to reload modules that you are developing after you have imported them. Fernando may have better advice. Ryan Howey, David A wrote:
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? Dave
-----Original Message----- From: scipy-user-bounces@scipy.net [mailto:scipy-user-bounces@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 info.
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).
Cheers,
f
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user