# PyVista

Python library for NumPy\-oriented mesh processing and scientific visualization over VTK\.

ID: Q548 · Revision: 595

Type: software · License: MIT[^pv-repo] · Status: active

Website: https://docs.pyvista.org/



PyVista is an open\-source Python library for three\-dimensional visualization and mesh analysis\. It provides NumPy\-oriented dataset objects, processing filters and plotting interfaces over VTK\. It is intended to be used from code, notebooks or applications rather than being a direct substitute for every feature of a standalone graphical analysis program\.[^pv-repo]

## Meshes and array\-oriented work

The documentation uses mesh broadly for spatial datasets, including point clouds, surfaces and volumes\. Points describe positions, while cell connectivity defines the relationships needed to represent geometry\. This structure matters when associating numerical arrays with a dataset or applying filters such as clipping and slicing\. A collection of coordinate values alone may not preserve the same topology as the source mesh\.[^pv-mesh][^pv-repo]

## Rendering environments

Notebook plotting supports static images and Trame\-based interactive rendering, including server and client\-side arrangements\. These are different deployment choices, not identical outputs\. Static plots are easy to retain as images but lose interactive exploration; interactive backends introduce their own runtime requirements\. A notebook that works in one environment may therefore need backend configuration and matching dependencies before another user can interact with its scene\.[^pv-jupyter]

## Data export and interactive scenes

Saving a data object invokes writers appropriate to the dataset and requested format\. Exporting an interactive HTML scene is a separate plotting operation, and its API documentation requires Trame\. These outputs preserve different things: dataset files support later numerical processing, whereas a scene export serves visualization\. Neither replaces retaining the Python code and original inputs that generated a derived result\.[^pv-save][^pv-html]

## License and alternatives

PyVista is MIT\-licensed, with its underlying VTK and other dependencies retaining their own terms\. It can replace [Mayavi](/mayavi) for supported Python mesh\-processing and visualization tasks when its array\-oriented API and available filters fit the project\. That is a workflow\-level substitution requiring code changes, not a claim that Mayavi scripts or visualization files load directly\. Rendering support, data association and exported content should be checked for the actual environment\.[^pv-repo][^vtk-home][^may-over]

## Capabilities and substitutions

### Array\-oriented mesh processing — supported

Dataset objects and filters expose spatial data through Python\.[^pv-repo][^pv-mesh]

Use case: Scientific dataset visualization and processing · Platforms: Python with supported VTK and rendering backends · Region: Build, rendering backend, reader/writer and dataset requirements apply

### Interactive HTML output — limited

The documented scene exporter requires Trame\.[^pv-html]

Use case: Scientific dataset visualization and processing · Platforms: Python with supported VTK and rendering backends · Region: Build, rendering backend, reader/writer and dataset requirements apply

### [Substitute for Mayavi](/mayavi) — limited

Alternative scripting interface over VTK; application controls, APIs and saved visualizations differ\.[^pv-repo][^may-over]

Use case: Supported Python mesh analysis and visualization · Platforms: Python with supported VTK and rendering backends · Region: Build, rendering backend, reader/writer and dataset requirements apply

## References

[^pv-repo]: [PyVista repository](<https://github.com/pyvista/pyvista>) — README NumPy\-based meshes, filters, VTK foundation and MIT license (vendor; retrieved 2026-10-07T04:03:57Z)

[^pv-mesh]: [PyVista meshes](<https://docs.pyvista.org/user-guide/what-is-a-mesh.html>) — Points, cell connectivity and spatial datasets (vendor; retrieved 2026-10-07T04:05:09Z)

[^pv-jupyter]: [PyVista notebook rendering](<https://docs.pyvista.org/user-guide/jupyter/index.html>) — Static versus Trame server/client rendering backends (vendor; retrieved 2026-10-07T04:04:06Z)

[^pv-save]: [PyVista DataObject\.save](<https://docs.pyvista.org/api/core/_autosummary/pyvista.dataobject.save>) — Dataset\-specific writers and file\-format output (vendor; retrieved 2026-10-07T04:04:06Z)

[^pv-html]: [PyVista HTML export](<https://docs.pyvista.org/api/plotting/_autosummary/pyvista.plotter.export_html>) — Interactive scene export requires trame (vendor; retrieved 2026-10-07T04:04:06Z)

[^vtk-home]: [VTK overview and license](<https://vtk.org/about/>) — C\+\+ core, Python bindings, filters, interaction and BSD terms (vendor; retrieved 2026-10-07T04:04:24Z)

[^may-over]: [Mayavi overview](<https://docs.enthought.com/mayavi/mayavi/overview.html>) — Application versus library and sources/filters/modules pipeline (vendor; retrieved 2026-10-07T04:04:32Z)

Source revision: https://substitutefor.net/entities/Q548?revision=595
