How to reload import in Jupyter

reload_mymodule_in_jupyter.py
import mymodule
# Reload .py file every time we run the cell
from importlib import reload
reload(mymodule)

In case you want to reload wildcard imports also see our new post on How to reload ‘from mymodule import *’ wildcard imports in Jupyter


Check out similar posts by category: Python