Skip to content

Instantly share code, notes, and snippets.

@deehzee
Last active December 1, 2021 19:48
Show Gist options
  • Save deehzee/86ad60d3d2e375013ec710234f88968c to your computer and use it in GitHub Desktop.
Save deehzee/86ad60d3d2e375013ec710234f88968c to your computer and use it in GitHub Desktop.
Auto reload of modules in jupyter notebook

Module autoreload

To auto-reload modules in jupyter notebook (so that changes in files *.py doesn't require manual reloading):

# for auto-reloading external modules
# see http://stackoverflow.com/questions/1907993/autoreload-of-modules-in-ipython
%load_ext autoreload
%autoreload 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment