Closed pashinin closed 11 years ago
When I use python-shell-send-buffer (C-c C-c) I can see changes from my main buffer in python shell.
python-shell-send-buffer
But if my buffer has imported modules they are not reloaded. Can it be fixed?
For exmple: main.py:
from functions import foo print 'a' foo()
functions.py:
def foo(): print 'bcdef'
So if I change foo() and run python-shell-send-buffer on main.py - it gives me the same foo() it read 1st time
foo()
a bcdef # never changed
This is not a limitation of the python shell itself. Try using ipython and its built-in reload method for your modules.
When I use
python-shell-send-buffer
(C-c C-c) I can see changes from my main buffer in python shell.But if my buffer has imported modules they are not reloaded. Can it be fixed?
For exmple:
main.py:
functions.py:
So if I change
foo()
and runpython-shell-send-buffer
on main.py - it gives me the samefoo()
it read 1st time