[Ipython-tickets] [IPython] #154: Automatic module reloading
IPython
ipython-tickets@scipy....
Wed Mar 5 17:16:32 CST 2008
#154: Automatic module reloading
-------------------------+--------------------------------------------------
Reporter: pv | Owner: vivainio
Type: enhancement | Status: assigned
Priority: normal | Milestone:
Component: ipython | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by pv):
Ok, I finally found time (= enough motivation :) to work on this.
Autoreloading implemented as an extension:
- It reloads modules only before executing code typed on the IPython
prompt.
- Behavior is controlled by %autoreload and %aimport
- Either no modules, only marked modules, or all modules except skipped
ones are reloaded, depending on %autoreload mode.
I didn't find a suitable hook for executing the reload before running
code, so instead of set_hook, I resorted to monkey-patching
InteractiveShell.
--
Ticket URL: <http://ipython.scipy.org/ipython/ipython/ticket/154#comment:3>
IPython <http://ipython.scipy.org>
The IPython interactive Python system
More information about the Ipython-tickets
mailing list