如何在 Jupyter 中重新加载 import
reload_mymodule_in_jupyter.py
import mymodule
# 每次运行单元格时重新加载 .py 文件
from importlib import reload
reload(mymodule)如果你想重新加载通配符导入,另请参阅我们关于如何在 Jupyter 中重新加载 ‘from mymodule import *’ 通配符导入的新文章
Check out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow