Ripser.py is a lean persistent homology library for Python, computing Vietoris–Rips persistence barcodes. Current version is 0.6.15, with maintenance-level updates.
pip install ripserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compute and plot Vietoris–Rips persistence diagrams from a random point cloud.
Use `diagrams = ripser(data)['dgms']` instead of a bare unpacking.
Use `from ripser import plot_diagrams` or install persim separately.
Set `maxdim=2` or higher explicitly if you need higher-dimensional features.
Run `pip install ripser`.
Update ripser (`pip install --upgrade ripser`) or install persim (`pip install persim`) and import from there.
Ensure the input matrix is square and symmetric. For point clouds, omit `distance_matrix=True`.