Skip to content

Instantly share code, notes, and snippets.

@maxtortime
Created August 3, 2016 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxtortime/650fe6598bd862a930b162f5322cc835 to your computer and use it in GitHub Desktop.
Save maxtortime/650fe6598bd862a930b162f5322cc835 to your computer and use it in GitHub Desktop.
ipython authoreload
In [1]: %load_ext autoreload
In [2]: %autoreload 2
In [3]: from foo import some_function
In [4]: some_function()
Out[4]: 42
In [5]: # open foo.py in an editor and change some_function to return 43
In [6]: some_function()
Out[6]: 43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment