%autoreload: reload code before execution in Jupyter
As I keep forgetting the following and keep finding outdated answers/documentation when searching online, I hope this will be useful to others and to future me:
Autoreload all imported packages in Jupyter
%load_ext autoreload
%autoreload 2
Autoreload specific packages foo
and bar
%load_ext autoreload
%autoreload 1
%aimport foo, bar