##// END OF EJS Templates
Backport PR #14169 on branch 8.12.x (Set instance on singleton configurable when created via constructor.) (#14170)...
Matthias Bussonnier -
r28406:1f69789f merge
parent child Browse files
Show More
@@ -158,6 +158,12 b' class InteractiveShellEmbed(TerminalInteractiveShell):'
158 assert (
158 assert (
159 "user_global_ns" not in kw
159 "user_global_ns" not in kw
160 ), "Key word argument `user_global_ns` has been replaced by `user_module` since IPython 4.0."
160 ), "Key word argument `user_global_ns` has been replaced by `user_module` since IPython 4.0."
161 # temporary fix for https://github.com/ipython/ipython/issues/14164
162 cls = type(self)
163 if cls._instance is None:
164 for subclass in cls._walk_mro():
165 subclass._instance = self
166 cls._instance = self
161
167
162 clid = kw.pop('_init_location_id', None)
168 clid = kw.pop('_init_location_id', None)
163 if not clid:
169 if not clid:
General Comments 0
You need to be logged in to leave comments. Login now