Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca7a5d0 + 2e91b09 commit 3b47371Copy full SHA for 3b47371
1 file changed
IPython/terminal/embed.py
@@ -158,6 +158,12 @@ def __init__(self, **kw):
158
assert (
159
"user_global_ns" not in kw
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
167
168
clid = kw.pop('_init_location_id', None)
169
if not clid:
0 commit comments