Installation¶
Prerequisites¶
| Tool | Version | Purpose |
|---|---|---|
| Rust | stable (via rustup) | compile the Rust core |
| Python | 3.10+ | run the Python package |
| maturin | current release | build the PyO3 extension |
| pip / venv | — | manage Python dependencies |
Install Rust
The easiest way to get Rust is via rustup:
GPU acceleration (optional)
fastdpplot detects cudf (RAPIDS) at runtime and uses it when available.
If cudf is not installed the tool falls back to pandas silently — no action needed.
Clone the repository¶
Create a Python environment¶
Install Python dependencies¶
This installs:
datashader,holoviews,panel,bokeh— renderingpandas,numpy,scipy— data handlingplotly,matplotlib— static outputmaturin— Rust extension builder
Build the Rust extension¶
This compiles both fastdpplot-core and fastdpplot-py, then installs the
fastdpplot._rs shared library into the active Python environment.
Always rebuild after changing Rust code
Python imports the compiled .so/.pyd file. Changes to any file under
crates/ are not visible until you re-run maturin develop.
Release build (distribution)¶
The --release flag enables full compiler optimisations (opt-level = 3,
lto = true, codegen-units = 1).