Skip to main content

Jupyter Server auto stop

Project description

stoy

Application for shutting down kernels in Jupyter Lab after they were idle for a specified period of time. The jupyter instance itself is terminated when no kernels were open for some time.

Installation

Install with pip

pip install stoy

Usage

Define the three timeouts, in seconds, as demonstrated in the example below:

stoy --kernel-idle=3600 --server-idle=1800 &

Troubleshooting

The application saves logs in ~/.stoy/stoy.log unless a different location is specified using the --log argument. To access the logs open jupyter lab terminal and run:

cat ~/.stoy/stoy.log

or

tail -n 20 ~/.stoy/stoy.log

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

stoy-0.0.12.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

stoy-0.0.12-py3-none-any.whl (4.7 kB view hashes)

Uploaded 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