You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, every time a user accesses this notebook, we create a kernel, and upon exiting, we shut it down (to maintain a unique context per notebook, similar to the JupyterLabApp).
One issue we have today (and would like to confirm) is that even after a user leaves Notebook X, meaning they are no longer inside the component and the associated kernel has been shut down, requests to /jupyter-server/api/sessions?{id} and /jupyter-server/api/kernels?{id} continue to be made continuously (and these likely accumulate as we have N notebooks with N cells).
From some tests, I noticed that this seems to occur even in the ./src/examples/Cells of the library.
Is this a known issue, and is there any way to control these calls?
Reproduce
Create a wrapper over Cells.tsx example;
Leave the component (navigate to another route/context) and observe the requests still being made.
Expected behavior
Have better control over these requests
Context
Datalayer version: 0.17.2
Browser and version: Chrome Version 130.0.6723.116
Yeah, I have seen that difficulty to really teradown the jupyterlab services. We are leading towards fully serverless components, and ensure better lifecycle management. TBH that difficult is mainly generated by the upstream jupyterlab being not always like it should be. Also, I can spend time to debug/fix on main branch, but won't be able to look at 0.17.x specifics.
Regarding the version, I’ll retest this: both the ./src/examples/Cells and our component in the main branch ASAP, and I’ll provide feedback here in the issue, okay?
Taking advantage of the context: Is there any known and more direct way to force the "shutdown" of these requests, even externally through some already existing interface (even if it’s from the core)?
My (main) concern is the accumulation of these requests over time (in case the user keeps a session/browser open).
Description
I have my own custom
Notebook.tsx
component that uses theCell.tsx
set from jupyter-reactCurrently, every time a user accesses this notebook, we create a kernel, and upon exiting, we shut it down (to maintain a unique context per notebook, similar to the
JupyterLabApp
).One issue we have today (and would like to confirm) is that even after a user leaves Notebook X, meaning they are no longer inside the component and the associated kernel has been shut down, requests to /
jupyter-server/api/sessions?{id}
and/jupyter-server/api/kernels?{id}
continue to be made continuously (and these likely accumulate as we have N notebooks with N cells).From some tests, I noticed that this seems to occur even in the
./src/examples/Cells
of the library.Is this a known issue, and is there any way to control these calls?
Reproduce
Cells.tsx
example;Expected behavior
Have better control over these requests
Context
Datalayer version:
0.17.2
Browser and version:
Chrome Version 130.0.6723.116
Current unmount code:
Notebook.tsx
:./src/examples/Cells
:The text was updated successfully, but these errors were encountered: