##// END OF EJS Templates
Update deepreload to use a rewritten knee.py. Fixes dreload(numpy)....
Update deepreload to use a rewritten knee.py. Fixes dreload(numpy). knee.py, a Python re-implementation of hierarchical module import was removed from the standard library because it no longer functioned properly. deepreload.py is little more than a hacked version of knee.py which overrides __builtin__.__import__ to ensure that each module is re-imported once (before just referring to sys.modules as usual). In addition, `os.path` was added to the default excluded modules, since somehow it has an entry in sys.modules without `os' being a package.

File last commit:

r5679:2bbef0cd
r6531:c0ad0135
Show More
embed3.py
7 lines | 336 B | text/x-python | PythonLexer
Thomas Kluyver
Add manual tests for embedding IPython.
r5679 """This tests passing local_ns and global_ns (for backwards compatibility only)
at activation of an embedded shell."""
from IPython.frontend.terminal.embed import InteractiveShellEmbed
user_ns = dict(cookie='monster')
ISE = InteractiveShellEmbed(banner1='check cookie in locals, and globals empty')
ISE(local_ns=user_ns, global_ns={})