[Ipython-tickets] [IPython] #154: Automatic module reloading
IPython
ipython-tickets@scipy....
Thu May 10 17:54:32 CDT 2007
#154: Automatic module reloading
-------------------------+--------------------------------------------------
Reporter: pv | Owner: fperez
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: ipython | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
It might be useful to have support for automatic reloading of modules in
Ipython.
Consider the use case of interactive data analysis using IPython:
- Some generic routines are in module ''x.py''
- Routines specific to a given data set are in ''y.py''
- I need to tweak something in ''x.py'' many times to get it to work
properly
- Now, after every edit of ''x.py'', a manual `reload(x)` is necessary,
apparently even when using `%run y.py` (ipython 0.7.3)
While it's probably not possible (?) to implement module reloading that
works in the ideal way all the time, I believe majority of the common
cases can be handled. This could be a significant reduction in the amount
of `reload`s typed, and `%autoreload on` might be a useful feature.
One very dirty implementation is here: http://projects.scipy.org/pipermail
/numpy-discussion/attachments/20070426/b206db3d/attachment-0001.py
No doubt this can be done better. I'll try to find time to propose a real
patch to Ipython.
--
Ticket URL: <http://projects.scipy.org/ipython/ipython/ticket/154>
IPython <http://ipython.scipy.org>
The IPython interactive Python system
More information about the Ipython-tickets
mailing list