Skip to main content

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 the api_last_activity. The default is 5 min

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter_cpu_alive-0.1.6.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyter_cpu_alive-0.1.6-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file jupyter_cpu_alive-0.1.6.tar.gz.

File metadata

  • Download URL: jupyter_cpu_alive-0.1.6.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jupyter_cpu_alive-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e4e5ed9ae398bade31e2986e6ac860f4ad7b3afd2af89f4d0a66ea595f6f8e79
MD5 cedb12190ff0ecde8169bf90f2ef1b23
BLAKE2b-256 e7d16e999375c3a607cfbc4e4ce2e32d0b7a7a0ef108eef4d685be844fe0ad36

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_cpu_alive-0.1.6.tar.gz:

Publisher: publish-to-pypi.yml on zoghbi-a/jupyter_cpu_alive

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jupyter_cpu_alive-0.1.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_cpu_alive-0.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 86b95f1d69e7a5604b849b3f8d167f171f5f235a532918e1653815ce7b9e100e
MD5 eed0ea545ca095f386a9c2c31c7d281c
BLAKE2b-256 facbee7e96f2f63fa110d2c893c927ebb65b1b4553d7336ed0cf86cbc862f55c

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_cpu_alive-0.1.6-py2.py3-none-any.whl:

Publisher: publish-to-pypi.yml on zoghbi-a/jupyter_cpu_alive

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page