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

File metadata

  • Download URL: jupyter_cpu_alive-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 5380a45cd87be26e349075104f619a21e8fdff545a72e0ab343a45fe9b4befff
MD5 ca7888f2e9c2d36bf2448639f941e0f8
BLAKE2b-256 518ebf13a00b378b6e748326198f3512165c11924397f6148f52543fbb36e324

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for jupyter_cpu_alive-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4bcf446adedb8b7cee84030bcd428a08dfee0610b6cdd7affdef69a12c02c6d5
MD5 a38bbc06410557953cede8571a013a55
BLAKE2b-256 c674dfee1790258f0613c7358d5f97f1734e4796a308e3899bcca56749707e63

See more details on using hashes here.

Provenance

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