Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bc2e54e

Browse files
author
wangningning
committed
ipython 自动reload脚本
1 parent 721a05e commit bc2e54e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎memo/memo.rst‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,15 @@ IPython
9999
print '{%s}' % ',\n'.join("'%s': '%s'" % pair for pair in d.iteritems())
100100
101101
102+
# http://shawnleezx.github.io/blog/2015/08/03/some-notes-on-ipython-startup-script/
103+
from IPython import get_ipython
104+
ipython = get_ipython()
105+
106+
# ipython.magic("pylab")
107+
ipython.magic("load_ext autoreload")
108+
ipython.magic("autoreload 2")
109+
110+
102111
Ipdb
103112
---------------------------------------------------------------
104113
.. code-block:: python

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /