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.3.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.3-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: jupyter_cpu_alive-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 e2d6857d0c02319a12b752ae9f2d529d26c9072b860b163b200aa8696b03fbd2
MD5 210049a5de3d232fee7e5892909be90e
BLAKE2b-256 6e826116b9456353cfd464470f0872951eb9f075e4f4779c234318a895a5e1fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_cpu_alive-0.1.3.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.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_cpu_alive-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 55d14dd19a62a59a259b999069f8b99a660fdd9d05be66f5cc8b7df97036c3d6
MD5 867603b72a3eaa8b8b34c42623aa1e4f
BLAKE2b-256 dab74c9d88fb36fcd1274df6ea20844d194d3db76cad1888c30c50e0d62dffac

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_cpu_alive-0.1.3-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