File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,8 @@ async def get_generator(self, path=None):
155
155
) = await self .kernel_manager .get_rendered_notebook (
156
156
notebook_name = notebook_path ,
157
157
extra_kernel_env_variables = {
158
- ENV_VARIABLE .VOILA_REQUEST_URL : self .request .full_url ()
158
+ ENV_VARIABLE .VOILA_REQUEST_URL : self .request .full_url (),
159
+ "JPY_SESSION_NAME" : notebook_path ,
159
160
},
160
161
)
161
162
@@ -234,6 +235,7 @@ def time_out():
234
235
return "<script>window.voila_heartbeat()</script>\n "
235
236
236
237
kernel_env = {** os .environ , ** request_info }
238
+ kernel_env ["JPY_SESSION_NAME" ] = notebook_path
237
239
kernel_env [ENV_VARIABLE .VOILA_PREHEAT ] = "False"
238
240
kernel_env [ENV_VARIABLE .VOILA_BASE_URL ] = self .base_url
239
241
kernel_env [ENV_VARIABLE .VOILA_SERVER_URL ] = self .settings .get (
You can’t perform that action at this time.
0 commit comments