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 77adcc6 commit 25ef93bCopy full SHA for 25ef93b
custom_components/pyscript/__init__.py
@@ -121,7 +121,9 @@ async def jupyter_kernel_start(call):
121
_LOGGER.debug("service call to jupyter_kernel_start: %s", call.data)
122
123
global_ctx_name = GlobalContextMgr.new_name("jupyter_")
124
- global_ctx = GlobalContext(global_ctx_name, global_sym_table={}, manager=GlobalContextMgr)
+ global_ctx = GlobalContext(
125
+ global_ctx_name, global_sym_table={"__name__": global_ctx_name}, manager=GlobalContextMgr
126
+ )
127
global_ctx.set_auto_start(True)
128
129
GlobalContextMgr.set(global_ctx_name, global_ctx)
0 commit comments