I do not have a code here as this is some general question.
When I modified and saved a py file which was imported in a Jupiter notebook, even I import the module again, I cannot get the updates in the notebook work, what should I do? (I usually shut down the work, but it is apparently inefficient)
importlib
should still work. Quoting from a similar solution but concerning the interpreter:
Python3 >= 3.4: importlib.reload(packagename)
Python3 < 3.4: imp.reload(packagename)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.