3D visualization and mesh analysis for science and engineering
PyVista is an open source, community-owned project, MIT licensed and
NumFOCUS Affiliated.
CoDimensional PBC,
founded by PyVista maintainers, is the project's commercial steward.
PyVista provides:
a NumPy-native API for 3D visualization and mesh analysis
dataset structures and filters for points, surfaces, and volumes
one plotting framework for notebooks, scripts, CI, and apps
a streamlined 3D interface for newcomers and graphics experts alike
Why PyVista
PyVista is the foundational Python library for 3D visualization and mesh
analysis in scientific computing and engineering. It plays the same role for
3D data that pandas plays for tabular data and xarray plays for labeled
n-dimensional arrays: NumPy-native datasets for point clouds, surfaces, and
volumetric meshes; a filter API covering clipping, slicing, thresholding,
smoothing, and dozens of other operations; and a unified plotting framework
that runs interactively in Jupyter notebooks, headlessly in CI, and as
embedded views inside larger web and desktop applications.
Built for production
PyVista is the reliable layer between user code and the underlying graphics
stack. The library is image-regression tested on every commit across all
Python versions still in their lifecycle and VTK releases,
holds its public API stable through a deliberate deprecation lifecycle, and
locks rendering behavior under visual regression baselines. The C++ toolkit
underneath provides few of these assurances and doesn't share our enthusiasm
for testing and reliability, which is why downstream science and engineering
teams build on PyVista.
Built to extend
Your downstream code can build on PyVista through a small, lazily evaluated
extension API. Third-party packages attach domain-specific filters and
plotter components via registered accessors, with no subclassing, no
monkey-patching, and no vendoring of upstream algorithms. See
Extending PyVista for
the contract.
Quickstart
PyVista runs on Python 3.10+:
pip install pyvista
Or via conda-forge:
conda install -c conda-forge pyvista
Try PyVista in your browser without installing anything, on
MyBinder.
Command line interface
PyVista also installs a pyvista CLI for quick plotting, format conversion,
and mesh validation, without writing any Python:
# Plot a mesh file in an interactive window
pyvista plot bunny.stl
# Convert a mesh file to another format
pyvista convert bunny.stl .vtp
# Validate a mesh's data, points, and cells
pyvista validate bunny.stl
See the CLI reference for the full
set of commands and options.
For general questions, ideas, or to share what you've built with PyVista,
start a thread in
GitHub Discussions or join
the Slack community.
Connections
PyVista is used across science and engineering disciplines to visualize 3D
data and models, generate publication-quality figures, automate analysis
workflows, and build custom applications on top of PyVista's 3D capabilities.
awesome-pyvista: a
continuously updated list of domain-specific tooling that interoperates
with or is built on PyVista.
Connections page:
selected highlights and context on how PyVista is used across the community.
Contributing
PyVista is mostly maintained on a volunteer basis and we welcome contributions
of every shape. Bug reports, documentation fixes, new examples, filter ideas;
all of it helps. Start with the
Contributing Guide
and our
Code of Conduct.
Many users and organizations rely on PyVista in production workflows,
research pipelines, and custom visualization systems. For expert guidance,
development help, or guaranteed support, there are several ways to engage
with the people who build and maintain PyVista.
For general inquiries, reach out to info@pyvista.org and we can help
connect you with the right community experts for your 3D visualization or
analysis needs.
For professional services such as consulting, custom development, feature
design, integration support, or training, consider sponsoring PyVista's core
developers through the "Sponsor this project" section on GitHub. Sponsorship
provides direct access to experts and helps sustain the maintenance and
feature work that keeps PyVista reliable. More details in the discussion
post: https://github.com/pyvista/pyvista/discussions/4033.
Citing PyVista
If you use PyVista in scientific research, please cite the
JOSS paper.
Sullivan and Kaszynski (2019). PyVista: 3D plotting and mesh analysis
through a streamlined interface for the Visualization Toolkit (VTK).
Journal of Open Source Software, 4(37), 1450.
https://doi.org/10.21105/joss.01450
@article{sullivan2019pyvista,
doi = {10.21105/joss.01450},
url = {https://doi.org/10.21105/joss.01450},
year = {2019},
month = {May},
publisher = {The Open Journal},
volume = {4},
number = {37},
pages = {1450},
author = {Bane Sullivan and Alexander Kaszynski},
title = {{PyVista}: {3D} plotting and mesh analysis through a streamlined interface for the {Visualization Toolkit} ({VTK})},
journal = {Journal of Open Source Software}
}
Status
Deployment:
Build:
Quality:
Activity:
Citation:
Community:
Affiliations & mentions:
Alternatives
Use instead of pyvista: tools that do the same job, closest first.