Skip to main content

🛡️ KernelLock

KernelLock is a robust, zero-overhead Python library designed to protect your Jupyter, Kaggle, and Google Colab environments from accidental kernel restarts, sys.exit() calls, and OS-level soft kill signals.

Features

  • GPU Zero-Overhead: Does not monitor or interfere with CUDA operations.
  • Auto-Injection: Installs a startup hook so it runs automatically when a kernel boots.
  • Interface Proof: Disables the "Restart Kernel" functionality from the notebook UI.
  • Sys.exit Proof: Prevents scripts from accidentally terminating the entire kernel.

Installation

pip install kernellock

Metadata

Release files for kernellock 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kernellock 1.0.0
File Size Uploaded
kernellock-1.0.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kernellock 1.0.0
File Interpreter ABI Platform
kernellock-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / kernellock-1.0.0.tar.gz

Download URL kernellock-1.0.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bb3308a69d8417fed5d8ac497ad12f51261559510556a58043597ace5e73c86a
BLAKE2b-256 checksum
How to use checksums
92f0d0e9fc7200975ee3e74bc46665ba73962b2d0d67c9f0136103f74818556e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / kernellock-1.0.0-py3-none-any.whl

Download URL kernellock-1.0.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e90dd8447ef574c3ec33f03c12920992dd3065926220223afa9c9fe28ca75d6
BLAKE2b-256 checksum
How to use checksums
727f94785263b9e5132ce25ee7f19448636c30d8064e8bb2c07e074fffc6dfa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page