[Tutor] Importing functions in IPython

bob gailer bgailer at gmail.com
Sun Jan 22 23:53:19 CET 2012

On 1/22/2012 5:43 PM, Alan Gauld wrote:
> On 22/01/12 22:10, Jaidev Deshpande wrote:
>> In[1]: from mymodule import myfunc
>> In[3]: from mymodule import myfunc
>> it doesn't work as per the new changes. I have to close IPython and
>> start all over again.
> You can use reload() to reload the entire module, but I confess I 
> don't know how to reload a function using import like that... reload 
> doesn't seem to have any option for that
> I'll watch this space to see if anyone else knows how.

Good idea. And now you know.

Bob Gailer
Chapel Hill NC

More information about the Tutor mailing list