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.5.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.5-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.5.tar.gz.

File metadata

  • Download URL: jupyter_cpu_alive-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 6d0dea2969aa186972fbf3fa1037e8798ffad33e686ebf38eacb6f28cd94d22d
MD5 777c1dfca3ed21e6dfdec12a62a1dc0d
BLAKE2b-256 87b3c4ad59ef65f6f2e8795dd47a30701e7f9e5a3f8bbb48261181594c57dc63

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for jupyter_cpu_alive-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a121aa5e59fd983063b7e2829f90967eb0154754af8fe74efc7577b6681c962b
MD5 23bbe75748ab26572aad9193133cc77f
BLAKE2b-256 df811ca4756772898d357702f35e85b6c1463918abdecff598cbe52327882d46

See more details on using hashes here.

Provenance

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