nvitop is an interactive NVIDIA GPU device and process monitoring tool written in Python. It provides a colorful and informative interface that continuously updates the status of GPUs and processes, offering more details and interactivity than the default `nvidia-smi`. Beyond its CLI, it exposes a comprehensive Python API for custom monitoring and integrates with tools like Grafana via `nvitop-exporter`. The current version is 1.6.2, with a regular release cadence addressing new `nvidia-ml-py` versions, features, and bug fixes.
pip install nvitopVerified import paths — ran on the pinned version, not inferred.
This quickstart script demonstrates how to get an overview of your NVIDIA GPUs and list the processes currently utilizing them using nvitop's Python API. It fetches device details like temperature, utilization, and memory, then lists active GPU processes with their respective memory usage.
Upgrade Python to version 3.8 or higher.
Refactor code to use nvitop's core API directly or explore other integration patterns for machine learning frameworks.
Update installation commands to use `pip install 'nvitop[cudaXX]'` syntax for specific NVIDIA driver compatibility.
Ensure that a compatible NVIDIA display driver (or CUDA Toolkit) is installed and that the NVML library is accessible on your system.
Install `windows-curses` via `pip install windows-curses`. For best TUI experience on Windows, consider using a compatible terminal emulator.
Run nvitop using `python -m nvitop` instead of just `nvitop`. Alternatively, add the Python console script path to your system's PATH environment variable.
Install the `windows-curses` package: `pip install windows-curses`.
Ensure `nvidia-ml-py` is compatible with your NVIDIA driver version. Check the `nvidia-ml-py` release history for compatible versions and install a specific one (e.g., `pip install nvidia-ml-py==XX.YYY.ZZ nvitop`) or install `nvitop` in a clean virtual environment to avoid conflicts.