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
.
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
Close
Hashes for jupyter_cpu_alive-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bea46b82d1547c2be837e283d2c826e1e1fcd349d274ea5dcc7f305d4a10e29 |
|
MD5 | 298cf0b1330c0ac174f2ab4fbd4e3926 |
|
BLAKE2b-256 | a0878ef53c702bbbefb228b025677d551f02fbeeb7e390ec7f9f01f7e3a069e3 |