Re: [Tutor] Importing functions in IPython

2012-01-22 Thread bob gailer
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

Re: [Tutor] Importing functions in IPython

2012-01-22 Thread bob gailer
On 1/22/2012 5:10 PM, Jaidev Deshpande wrote: Dear List, Suppose I have a function myfunc() in a module called mymodule.py As usual, I import this function in IPython with In[1]: from mymodule import myfunc Now if I find that there is something wrong with myfunc, I can open mymodule.py with a

Re: [Tutor] Importing functions in IPython

2012-01-22 Thread Alan Gauld
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 relo

Re: [Tutor] Importing functions in IPython

2012-01-22 Thread Steven D'Aprano
On Mon, Jan 23, 2012 at 03:40:26AM +0530, Jaidev Deshpande wrote: > Dear List, > > Suppose I have a function myfunc() in a module called mymodule.py [...] > Now when I delete the original function and import the changed one, > > In[2]: del myfunc > In[3]: from mymodule import myfunc > > it doesn

[Tutor] Importing functions in IPython

2012-01-22 Thread Jaidev Deshpande
Dear List, Suppose I have a function myfunc() in a module called mymodule.py As usual, I import this function in IPython with In[1]: from mymodule import myfunc Now if I find that there is something wrong with myfunc, I can open mymodule.py with a suitable editor and make the required changes.