[IPython-user] re importing modules

Fernando Perez fperez.net@gmail....
Mon Sep 10 15:54:02 CDT 2007


On 9/10/07, fred <fredmfp@gmail.com> wrote:
> Oğuz Yarımtepe a écrit :
> > Hi,
> >
> > Sometime i make changes on the class that i have already imported while using
> > ipython shell and need to re import it to take effects. But using the import
> > command doesnt re import the module again with the new effects. How can i
> > manage it without logging out and logging in to the shell?
> >
> The doc says sec 6.9 to use dreload for this.

Note: dreload is a more aggressive form of 'deep' reloading.  For
single-module changes, just use the Python builtin function reload()

Cheers,

f


More information about the IPython-user mailing list