I have the following in ipython_config.py :
print "Test autoreload"
And it seems to work for regular ipython sessions:
$ ipython Test autoreload In [1]: %autoreload 2 In [2]:
However, when using the built-in shell script that uses IPython.embed (), the autoreload magic no longer works.
For example, in shell.py :
from IPython import embed embed()
This still loads my ipython_config.py, as evidenced by the "Test autoreload" listing, however the autoload extension does not load (no% autoreload magic):
$ python shell.py Test autoreload In [1]: %autoreload 2 ERROR: Line magic function `%autoreload` not found.
source share