From: Robin <ro...@gm...> - 2008-04-29 09:18:53
|
On Tue, Apr 29, 2008 at 2:27 AM, G Jones <gle...@gm...> wrote: > Hello, > I appologize for a slightly off topic post, but I'm sure someone here > knows the answer. I like the idea of developing code interactively > with IPython, but I cannot get past one hurdle. I would like to write > my code in a module that I then import and instantiate classes or call > functions from interactively. However, when I try to do this in > IPython I find that after I import my code, it is cached and even > after restarting and reimporting, the changes are not recognized. What > is the paradigm people use to get around this, or what is the > preferred paradigm for interactive development using IPython. > Thanks, > Glenn While I don't see any persistance across restarts of ipython - I do within a session. Check the reload command - which will reimport an already imported module picking up any fresh changes in the source. Cheers Robin |