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.