Auto-reload Python Packages or Python Modules in Jupyter Notebook
Python package or python module autoreloading in jupyter notebook
In many cases, we include local packages or modules in jupyter notebooks. While it makes the code easier to read, packages or modules have to be hot reloaded everytime we make some changes to them.
%load_ext autoreload
%autoreload 2
More about this jupyter notebook magic can be found in the documentation.
Planted:
by Lei Ma;
Similar Articles:
L Ma (2019). 'Auto-reload Python Packages or Python Modules in Jupyter Notebook', Datumorphism, 05 April. Available at: https://datumorphism.leima.is/til/programming/jupyter-notebook-autoreload-python-modules-or-packages/.