%autoreload: reload code before execution in Jupyter
Nov 8, 2020
Alexander Junge
1 minute read

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



comments powered by Disqus