Skip to main content

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.

PyPI Python License

Install · Usage · Keys · Why

htop-gpu demo

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 / memory for top system processes, gpus for GPU-only, processes to fullscreen the table)
  • Click column headers to sort
  • Click a process row → press k to send SIGTERM (falls back to sudo kill with 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
09 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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

htop_gpu-0.1.8.tar.gz (33.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

htop_gpu-0.1.8-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file htop_gpu-0.1.8.tar.gz.

File metadata

  • Download URL: htop_gpu-0.1.8.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for htop_gpu-0.1.8.tar.gz
Algorithm Hash digest
SHA256 f97b21bf212f4958932443f900f5a77c0b7ea188176c1c565b44e251fef75262
MD5 37f8e05c56b7f29f33af9c5687a4861f
BLAKE2b-256 728d5fc8245e73093a26ee5c776a2d1d59ad39b85d7e202196282ba26b3f147f

See more details on using hashes here.

Provenance

The following attestation bundles were made for htop_gpu-0.1.8.tar.gz:

Publisher: publish.yml on seongwon980/htop-gpu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file htop_gpu-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: htop_gpu-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for htop_gpu-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9b233dcaf7ef6b1b6df6d398f65263c4945a8c5afc11a2c4525c951e8d88b5da
MD5 cbf81176a5d599f90f39f84aed99aee7
BLAKE2b-256 cbeab24c0cb4f19c6d2d63d3d878f6dbb97fe566f6c968d8bd8119850324d1f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for htop_gpu-0.1.8-py3-none-any.whl:

Publisher: publish.yml on seongwon980/htop-gpu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page