Prevents Jupyter/Kaggle/Colab kernel restarts and OS-level kills seamlessly.
Project description
🛡️ 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kernellock-1.0.0.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kernellock-1.0.0.tar.gz.
File metadata
- Download URL: kernellock-1.0.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb3308a69d8417fed5d8ac497ad12f51261559510556a58043597ace5e73c86a
|
|
| MD5 |
eb654b47c02cb065638e151828d68df9
|
|
| BLAKE2b-256 |
92f0d0e9fc7200975ee3e74bc46665ba73962b2d0d67c9f0136103f74818556e
|
File details
Details for the file kernellock-1.0.0-py3-none-any.whl.
File metadata
- Download URL: kernellock-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e90dd8447ef574c3ec33f03c12920992dd3065926220223afa9c9fe28ca75d6
|
|
| MD5 |
4921dc46fe0fa17c7e3ee9ac36616c1a
|
|
| BLAKE2b-256 |
727f94785263b9e5132ce25ee7f19448636c30d8064e8bb2c07e074fffc6dfa9
|