Skip to content

Commit 7c6c295

Browse files
committed
ensure Frame proxy to dict
1 parent 7656b8a commit 7c6c295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipykernel/embed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def embed_kernel(module=None, local_ns=None, **kwargs):
4949
if module is None:
5050
module = caller_module
5151
if local_ns is None:
52-
local_ns = caller_locals
52+
local_ns = dict(**caller_locals)
5353

5454
app.kernel.user_module = module
5555
assert isinstance(local_ns, dict)

0 commit comments

Comments
 (0)