Installation¶
PtyLab.py requires Python 3.10–3.13 and is distributed via GitHub.
From GitHub (pip)¶
Verify GPU detection¶
After installing with a CUDA extra, confirm the GPU is detected:
This prints available GPU device information or warns if no GPU is found.
Development setup¶
Clone the repository and install with development dependencies:
This creates a .venv virtual environment in the project root. Select it in your IDE or activate it:
For GPU support during development:
Running tests¶
Serving documentation locally¶
Then open http://127.0.0.1:8000 in your browser.