tools/tests/embed/embed3.py
raw| 1 | """This tests passing local_ns and global_ns (for backwards compatibility only) |
| 2 | at activation of an embedded shell.""" |
| 3 | from IPython.terminal.embed import InteractiveShellEmbed |
| 4 | |
| 5 | user_ns = dict(cookie='monster') |
| 6 | ISE = InteractiveShellEmbed(banner1='check cookie in locals, and globals empty') |
| 7 | ISE(local_ns=user_ns, global_ns={}) |