Installation¶
PtyLab.py requires Python 3.10–3.13 and is distributed on PyPI.
From PyPI (pip)¶
Latest development version¶
To install the unreleased state of main directly from GitHub:
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.