Terminal dashboard for NVIDIA GPUs, system CPU/memory, and processes — clickable, with conda/docker/tmux info per process.
Project description
htop-gpu
NVIDIA GPUs, system CPU/memory, and processes in one terminal dashboard — each process annotated with its conda env, docker container, and working directory.
Install
pip install htop-gpu
htop-gpu # one-shot snapshot
htop-gpu -w # watch mode
hgpu -w # short alias
Linux, Python 3.9+, NVIDIA driver. Uses NVML (fast) when available, falls
back to nvidia-smi.
What it does
- GPUs, CPU/memory, and processes in one screen
- Click any panel title to switch what the process table shows
(
cpu/memoryfor top system processes,gpusfor GPU-only,processesto fullscreen the table) - Click column headers to sort
- Click a process row → press
kto sendSIGTERM(falls back tosudo killwith a password prompt if you don't own it) - Conda env, docker container, tmux session shown next to each command, so you can tell at a glance whose stray process is hogging GPU 5
- Adaptive layout — drops decorations as the terminal shrinks; it keeps the GPU + CPU/Mem panels visible even on tiny windows
Usage
Watch mode is mouse-driven. Everything is also keyboard:
| key | what it does |
|---|---|
c / m / p |
switch to cpu / memory / focus-procs view |
Esc, ← |
back out (clears mode / focus / selection) |
↑ ↓ |
move selection |
k, F9 |
kill selected process |
l |
toggle full command lines |
0–9 |
filter to that GPU index |
q, F10, Ctrl-C |
quit |
Mouse uses SGR mouse mode (\x1b[?1006h) — works in iTerm2, Kitty,
WezTerm, Ghostty, Alacritty, Windows Terminal, modern xterm/Konsole, and
tmux with mouse on.
For scripts:
htop-gpu --json | jq '.processes[] | select(.gpu_mem_mib > 10000)'
Credits
UI takes inspiration from htop, btop, and nvtop. Independent project, not affiliated.
License
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
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 htop_gpu-0.1.9.tar.gz.
File metadata
- Download URL: htop_gpu-0.1.9.tar.gz
- Upload date:
- Size: 34.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb53f875fb0b3a1b0ae76ae8f465c3b13687e34550e6c9c0b26d48bd791d13ed
|
|
| MD5 |
1e2ce2849f87211ae47d58946f6552d7
|
|
| BLAKE2b-256 |
b0e107e471c81afebeca15405514cca2a31764bc26b5bf9aeb098898bfaa65cb
|
Provenance
The following attestation bundles were made for htop_gpu-0.1.9.tar.gz:
Publisher:
publish.yml on seongwon980/htop-gpu
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
htop_gpu-0.1.9.tar.gz -
Subject digest:
bb53f875fb0b3a1b0ae76ae8f465c3b13687e34550e6c9c0b26d48bd791d13ed - Sigstore transparency entry: 1350688181
- Sigstore integration time:
-
Permalink:
seongwon980/htop-gpu@43801ab615058b4df05a75cf79d3962eb915de1e -
Branch / Tag:
refs/tags/v0.1.9 - Owner: https://github.com/seongwon980
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@43801ab615058b4df05a75cf79d3962eb915de1e -
Trigger Event:
push
-
Statement type:
File details
Details for the file htop_gpu-0.1.9-py3-none-any.whl.
File metadata
- Download URL: htop_gpu-0.1.9-py3-none-any.whl
- Upload date:
- Size: 33.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
761cfef8dbc676768532fc04ffab4635a94162d16caec9bff6dd853c63f386cb
|
|
| MD5 |
d6aebabc238d74f3788fa4c5156970b0
|
|
| BLAKE2b-256 |
c9e3806dfb3ffbad9db0c11c9364a064184b8ef673704096c9e522d96a896748
|
Provenance
The following attestation bundles were made for htop_gpu-0.1.9-py3-none-any.whl:
Publisher:
publish.yml on seongwon980/htop-gpu
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
htop_gpu-0.1.9-py3-none-any.whl -
Subject digest:
761cfef8dbc676768532fc04ffab4635a94162d16caec9bff6dd853c63f386cb - Sigstore transparency entry: 1350688268
- Sigstore integration time:
-
Permalink:
seongwon980/htop-gpu@43801ab615058b4df05a75cf79d3962eb915de1e -
Branch / Tag:
refs/tags/v0.1.9 - Owner: https://github.com/seongwon980
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@43801ab615058b4df05a75cf79d3962eb915de1e -
Trigger Event:
push
-
Statement type: