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
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
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
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
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.