fileA.py
import fileB
...
fileB.py
print (0)
in IPYTHON
First time, when i run fileA.py, it print 0
then, i modify the fileB.py
print(1)
second time, run fileA.py, it also print 0
because the run magic function do not use deepreload
reference:
https://stackoverflow.com/questions/13150259/ipython-re-importing-modules-when-using-run
http://ipython.org/ipython-doc/dev/api/generated/IPython.lib.deepreload.html
沒有留言:
張貼留言