Skip to content

Instantly share code, notes, and snippets.

@an9er
Last active December 10, 2015 07:48
Show Gist options
  • Save an9er/bcdbe017bf1c029716ee to your computer and use it in GitHub Desktop.
Save an9er/bcdbe017bf1c029716ee to your computer and use it in GitHub Desktop.
[QUESTION] Reloading submodules in IPython
[ANSWER]
IPython comes with some automatic reloading magic:
%load_ext autoreload
%autoreload 2
It will reload all changed modules every time before executing a new line. The way this works is slightly different than dreload. Some caveats apply, type %autoreload? to see what can go wrong.
EDIT: fixed typo locd -> load
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment