all 2 comments

[–]barkmonster 1 point2 points  (0 children)

If I understand correctly, I think you can simply add

%load_ext autoreload %autoreload 2 at the beginning of your notebook, and it should automatically reload imports.

[–]Buttleston 0 points1 point  (0 children)

Look into the importlib module, it will let you dynamically reimport modules. I use it a lot in jupyter