# 🛡️ 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
```bash
pip install kernellock