I am Charmie

メモとログ

Python: update a script .py file after edit

[code lang="python"] import hoge

edit the hoge.py

reload(hoge) [/code]

You might have an experience that iPython/Anaconda seems to ignore your update on a script file. No matter how many times you edited and saved, iPython/Anaconda returns same error message as you don't update anything at all. The solution is to call reload function that recompiles the module.