Python Kernel Killer is a VS Code / VSCodium extension (Linux-focused) to inspect and manage running Python-related processes directly from the sidebar.
It is especially useful when Jupyter kernels, multiprocessing jobs, or Python scripts become unresponsive and cannot be stopped from within VS Code.
![]() Sidebar with detected processes and tooltip information |
![]() Kill process confirmation dialog |
The extension detects and groups processes into:
- Zombie Python processes
- Orphan Python processes
- IPython / Jupyter kernels
- JupyterLab servers
- Terminal Python processes
Each process shows:
- PID
- CPU usage (%)
- Memory usage (% and RSS in MB)
- Full command
You can terminate processes directly from the sidebar with three modes:
-
Soft kill (SIGTERM)
kill <PID>
Graceful shutdown (default, recommended)
-
Force kill (SIGKILL)
kill -9 <PID>
Immediate termination (use with caution)
To prevent accidental system damage, the extension applies multiple safeguards:
-
PID
1is blockedPID 1 (
systemd/init) is the root of the process tree on Linux.
Terminating it can immediately destabilize or shut down the system. -
System Python processes are protected
Not all Python processes are user workloads. Many desktop and system components are implemented in Python as background services in
/usr/binor/usr/lib.- blocked for soft kill
- require explicit confirmation for force kill
- Optional auto-refresh every 5 seconds
- Visual indicator when enabled
The extension extracts environment names when possible:
- Conda / Miniforge ->
envs/<name> - venv -> project folder name
Displayed only in the kill confirmation dialog.
This extension is designed with minimal data exposure.
Instead of collecting all processes, it uses a filtered ps command:
ps -eo pid=,ppid=,stat=,tty=,pcpu=,rss=,comm=,args= | awk '...'Filtering happens before data reaches the extension, ensuring:
- No full process list is stored
- Only relevant Python/Jupyter processes are processed
- Linux system
- Standard tools available:
psawkkill
No Python packages required.
- Open the Python Kernels sidebar
- Inspect running processes
- Click a process to terminate it
- Choose kill mode and confirm action
- Linux only
- Detection based on process patterns (not kernel APIs)
- Remote kernels are only visible if running locally
MIT
See full changelog: 👉 https://github.com/maikfussel/python-kernel-killer/blob/master/CHANGELOG.md
- Process categorization (zombie, orphan, kernels, etc.)
- CPU and memory monitoring
- Kill modes (soft / force)
- Auto-refresh
- Initial release

