PyVista Python library for NumPy-oriented mesh processing and scientific visualization over VTK.
Overview 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.[1]
Contents 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.[1] [2]
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.[3]
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.[4] [5]
License and alternatives PyVista is MIT-licensed, with its underlying VTK and other dependencies retaining their own terms. It can replace 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.[1] [6] [7]
References PyVista repository README NumPy-based meshes, filters, VTK foundation and MIT license
vendor · retrieved 2026-10-07 PyVista meshes Points, cell connectivity and spatial datasets
vendor · retrieved 2026-10-07 PyVista notebook rendering Static versus Trame server/client rendering backends
vendor · retrieved 2026-10-07 PyVista DataObject.save Dataset-specific writers and file-format output
vendor · retrieved 2026-10-07 PyVista HTML export Interactive scene export requires trame
vendor · retrieved 2026-10-07 VTK overview and license C++ core, Python bindings, filters, interaction and BSD terms
vendor · retrieved 2026-10-07 Mayavi overview Application versus library and sources/filters/modules pipeline
vendor · retrieved 2026-10-07 Also included: 2 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.