Comments (4)
There is a ´start_watching_activity´ in jupyter server's MappingKernelManager
that listens on iopub channels and updates a kernel state and tracks last activity timestamp. When the kernel crashes jupyter_client restarts the kernel (https://github.com/jupyter/jupyter_client/blob/main/jupyter_client/ioloop/restarter.py#L52). So the kernel has the same id after it is restarted and has idle
state.
When the kernel crashes with opened Notebook 7/JupyterLab UI the state is updated correctly on the server, but when the kernel process dies when UI is closed then the execution state is always shown as ´busy´.
Incorrect state could also impact on kernel culling logic because and execution state is monitored in https://github.com/jupyter-server/jupyter_server/blob/main/jupyter_server/services/kernels/kernelmanager.py#L664
from jupyter_server.
Maybe #990 could solve this?
from jupyter_server.
FWIW JupyterLab is able to work around this condition (although it is not pretty):
My thinking earlier was that kernel simply cannot send a message when it dies because it is dead, but indeed a kernel manager might be able to handle it. I guess the state should not be idle
though.
PS. What is kernel activity monitor? Is it related to https://github.com/jupyter-server/jupyter-resource-usage?
from jupyter_server.
My idea of a so-called monitor may coincide with the idea of a server side execution like jupyterlab/jupyterlab#15448
When we can execute cell with a single command and move document changes to the backend, we can implement a process like jupyterlab/jupyterlab#12455 (Not entirely dependent on the kernel itself, but on its Manager
)
from jupyter_server.
Related Issues (20)
- Missing Python target version bound leads to incorrect `ruff` suggestions HOT 3
- Should `current_user` and `prepare` guards be set in `AuthenticatedHandler` rather than `JupyterHandler`? HOT 2
- The Shut Down and Log Out menu items disappeared between 2.12.5 and 2.13.0 HOT 2
- Invalid page_config.json can crash server HOT 1
- interface for switching between jupyter apps
- Add constraints fore saving/reading files
- Add an HTML endpoint for `/api` with interactive docs HOT 3
- Slower atexit methods do not run to completion HOT 2
- Running Out of memory in a process can cause the extension handler to crash HOT 1
- Fix outdated security documentation HOT 3
- Cookie security docs are misleading
- extensions cannot render error pages without static_paths configuration HOT 1
- Environment variables passed to logs should be sanitised out of the logs
- Tests are failing on Windows HOT 1
- Pass session ID during Websocket Upgrade connection when using Gateway.
- jupyter server crashes and fails to render files or file ops if a malformed `pyproject.toml` is found in a user's homedir HOT 4
- Allow-list for server extensions? HOT 1
- how to Use PasswordIdentityProvider.allow_password_change HOT 2
- Add the ability to dynamically capture server logs from a running server.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyter_server.