Merge pull request #2418 from ahlinc/fix_retriggered_issue_396

[MRG+1] Fix #396 re-triggered issue
This commit is contained in:
Elias Dorneles 2016-11-30 10:49:41 -02:00 committed by GitHub
commit 2086ff4065
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,9 @@ def _embed_ipython_shell(namespace={}, banner=''):
config = load_default_config()
# Always use .instace() to ensure _instance propagation to all parents
# this is needed for <TAB> completion works well for new imports
# and clear the instance to always have the fresh env
# on repeated breaks like with inspect_response()
InteractiveShellEmbed.clear_instance()
shell = InteractiveShellEmbed.instance(
banner1=banner, user_ns=namespace, config=config)
shell()