

The Troop / Specimen
panchi
Macaca linearis
A Python linear algebra library for students, with exact symbolic numbers and animated visualizations.
How it works
panchi gives you Matrix and Vector types that behave the way they do on a whiteboard. Values can stay exact: symbolic numbers such as QuadraticNumber keep a square root a square root, instead of collapsing it into a long decimal.
The visualization module draws what a matrix does to the plane. I use it to make the animations for the MATH 1554 PLUS sessions I lead at Georgia Tech:
import panchi as pan
from panchi.visualizations import Animator2D
A = pan.Matrix([[1, -2], [2, -4]])
Animator2D(backend="manim", quality="high").animate_transform(
A, name="transform_collapse"
)
That matrix has rank 1, so the animation shows the whole plane collapsing onto a single line.
Install it with pip install "panchi[manim]", or plain pip install panchi without the Manim animation backend.
Where it is now
| Latest release | 3.3.0 (November 2026) |
| Tests | 1,329 passing |
| Outside contributors | 9 people, 14 merged pull requests |
| Next | SVD, built on the Jacobi eigenvalue method |