A Jupyter Server extension that accesses and modifies the settings dictionary.
Project description
Content
jupyter_cpu_alive
is a jupyter server extension that updates the server's api_last_activity
based on CPU usage. This is useful to keep the server alive so it is not culled when running inside jupyterhub.
Install
Install with pip install jupyter_cpu_alive
.
Then run jupyterlab.
The extension is configured with two environment variables:
JUPYTER_CPU_ALIVE_PERCENT_MIN
defines the minimum CPU activity, above which the CPU is considered active. The default is 70%.JUPYTER_CPU_ALIVE_INTERVAL
gives the interval in second for checking for activity and updating theapi_last_activity
. The default is 5 min
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jupyter_cpu_alive-0.1.2.tar.gz
.
File metadata
- Download URL: jupyter_cpu_alive-0.1.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e335414b0881cfc4670803556d97eb0ed43f0b244451af96361b676d44360d55 |
|
MD5 | 0158fa6c5b63e07971176909988dcf11 |
|
BLAKE2b-256 | ed58df82de2f880ce0c610779cd23bfd334778012e9552b02cdf807d25384626 |
File details
Details for the file jupyter_cpu_alive-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: jupyter_cpu_alive-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97237eec49fb61f9dcd5553aaffc41a3fa026d96991787376b6126bdb985bc11 |
|
MD5 | 6b5191a9774c4899dcd132d5edecd647 |
|
BLAKE2b-256 | a530024eb4ad9a90bcc84a2680f8436244a10e2ca531030413b92ba238d95f81 |