##// END OF EJS Templates
Restore dummy user_global_ns parameter for embedding (backwards compatibility)
Thomas Kluyver -
Show More
@@ -75,7 +75,11 b' class InteractiveShellEmbed(TerminalInteractiveShell):'
75 def __init__(self, config=None, ipython_dir=None, user_ns=None,
75 def __init__(self, config=None, ipython_dir=None, user_ns=None,
76 user_module=None, custom_exceptions=((),None),
76 user_module=None, custom_exceptions=((),None),
77 usage=None, banner1=None, banner2=None,
77 usage=None, banner1=None, banner2=None,
78 display_banner=None, exit_msg=u''):
78 display_banner=None, exit_msg=u'', user_global_ns=None):
79
80 if user_global_ns is not None:
81 warnings.warn("user_global_ns has been replaced by user_module. The\
82 parameter will be ignored.", DeprecationWarning)
79
83
80 super(InteractiveShellEmbed,self).__init__(
84 super(InteractiveShellEmbed,self).__init__(
81 config=config, ipython_dir=ipython_dir, user_ns=user_ns,
85 config=config, ipython_dir=ipython_dir, user_ns=user_ns,
General Comments 0
You need to be logged in to leave comments. Login now