autoreloadtest.py:
test = [1,2,3]
In [2]: %load_ext autoreload
In [3]: import autoreloadtest
In [5]: autoreloadtest.test
Out[5]: [1, 2, 3]
In [7]: autoreloadtest.test
Out[7]: [1, 2, 3]
In [9]: %autoreload 2
In [10]: autoreloadtest.test
[autoreload of doctest failed: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/IPython/extensions/autoreload.py", line 220, in check
superreload(m, reload, self.old_objects)
ValueError: f() requires a code object with 1 free vars, not 0]
[autoreload of encodings failed: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/IPython/extensions/autoreload.py", line 220, in check
superreload(m, reload, self.old_objects)
ImportError: cannot import name aliases]
[autoreload of ctypes failed: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/IPython/extensions/autoreload.py", line 220, in check
superreload(m, reload, self.old_objects)
RuntimeError: maximum recursion depth exceeded while calling a Python object]
[autoreload of unittest.loader failed: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/IPython/extensions/autoreload.py", line 220, in check
superreload(m, reload, self.old_objects)
ImportError: cannot import name case]
Out[10]: [1, 2, 4] # correct output
In [11]: autoreloadtest.test
Traceback (most recent call last):
File "/usr/bin/ipython2", line 7, in <module> launch_new_instance()
File "/usr/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py", line 403,
in launch_new_instance app.start()
File "/usr/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py", line 377,
in start self.shell.mainloop()
File "/usr/lib/python2.7/site-packages/IPython/frontend/terminal/interactiveshell.py", line 290,
in mainloop self.interact(display_banner=display_banner)
File "/usr/lib/python2.7/site-packages/IPython/frontend/terminal/interactiveshell.py", line 409,
in interact self.run_cell(source_raw, store_history=True)
File "/usr/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2410,
in run_cell cell_name = self.compile.cache(cell, self.execution_count)
File "/usr/lib/python2.7/site-packages/IPython/core/compilerop.py", line 121,
in cache linecache._ipython_cache[name] = entry
AttributeError: 'module' object has no attribute '_ipython_cache'
You can print a more detailed traceback right now with "%tb", or use "%debug" to interactively debug it.
Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
%config Application.verbose_crash=True
Running Arch LInux x86_64:
% ipython2
Python 2.7.2 (default, Jan 31 2012, 13:19:49)
Type "copyright", "credits" or "license" for more information.
IPython 0.12 -- An enhanced Interactive Python.
(...)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4