pythonemacsemacs23python-module

emacs and python updating modules


atm i'm using emacs to write some python code, so far it works quite fine except one problem that is really a bit annoying.

Always when I update something inside a self written module i reevaluate the buffer and the module in the python shell inside emacs doesn't get updated. i always have to end the python process and start it again to get the change. I figured out that emacs copies some things to a tmp dir to execute them, so i guess it has something to do with this.

Maybe someone out there had the same problem and solved it already so help would be appreciated


Solution

  • You have to reload the module manually in the shell in order for it to take effect.

    See the documentation here on the Python reload function

    I asked a similar question which you can see here