Skip to content

Instantly share code, notes, and snippets.

@yawara
Created January 27, 2016 09:38
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 yawara/33626470120393ae56f4 to your computer and use it in GitHub Desktop.
Save yawara/33626470120393ae56f4 to your computer and use it in GitHub Desktop.
メモ:iPython3でreloadを有効にする。 ref: http://qiita.com/yawara/items/5c9f1190080644dd9816
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]: # foo.pyを開いてsome_functionが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