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.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

jupyter_cpu_alive-0.1.1-py2.py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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