How to reload import in Jupyter

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