Skip to content

Instantly share code, notes, and snippets.

@amattheisen
Created November 7, 2016 15:10
Show Gist options
  • Save amattheisen/b476f13bfa341b8218a4aab8057abf9b to your computer and use it in GitHub Desktop.
Save amattheisen/b476f13bfa341b8218a4aab8057abf9b to your computer and use it in GitHub Desktop.
reload changed module in ipython
I develop using vim and an ipython shell.
To test module changes to module foo, I type the following in the python shell:
import sys
reload(sys.modules['foo'])
import foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment