##// END OF EJS Templates
Correct decisions about when to automatically get local namespace and module for embedding.
Thomas Kluyver -
Show More
@@ -175,9 +175,9 b' class InteractiveShellEmbed(TerminalInteractiveShell):'
175 175 if local_ns is None or module is None:
176 176 call_frame = sys._getframe(stack_depth).f_back
177 177
178 if local_ns is None and not self.default_user_ns:
178 if local_ns is None and self.default_user_ns:
179 179 local_ns = call_frame.f_locals
180 if module is None and not self.default_user_module:
180 if module is None and self.default_user_module:
181 181 global_ns = call_frame.f_globals
182 182 module = sys.modules[global_ns['__name__']]
183 183
General Comments 0
You need to be logged in to leave comments. Login now