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.
1 parent 7656b8a commit 7c6c295Copy full SHA for 7c6c295
ipykernel/embed.py
@@ -49,7 +49,7 @@ def embed_kernel(module=None, local_ns=None, **kwargs):
49
if module is None:
50
module = caller_module
51
if local_ns is None:
52
- local_ns = caller_locals
+ local_ns = dict(**caller_locals)
53
54
app.kernel.user_module = module
55
assert isinstance(local_ns, dict)
0 commit comments