Trame interface for PyVista
Actively maintained. Last release 4 weeks ago, commits in 14 of the last 26 weeks. A safe choice.
pip install trame-pyvistatrame-pyvista
Trame interface for PyVista. Provides web-based 3D viewers, Jupyter backends, scene exporters, and a Sphinx directive for embedding interactive plots in docs.
This package was extracted from the pyvista.trame subpackage so the
trame stack can release on its own cadence. PyVista discovers installed
functionality through entry points, so existing user code keeps working
once trame-pyvista is installed.
Install
pip install trame-pyvista
For Jupyter:
pip install "trame-pyvista[jupyter]"
The notebook widgets are anywidgets. When the
Jupyter server runs in a separate environment from the kernel (JupyterHub,
nb_conda_kernels), install anywidget in the server environment too.
For marimo:
pip install "trame-pyvista[marimo]"
What you get
-
Jupyter backends:
trame,server,client,html. Registered with PyVista via thepyvista.jupyter_backendsentry-point group, sopv.set_jupyter_backend('trame')works oncetrame-pyvistais installed. -
marimo: with PyVista 0.50 or newer (
pip install "pyvista[marimo]"),pl.show()andmesh.plot()render inline andjupyter_backendorpv.set_jupyter_backendpicks the backend, as in Jupyter. With older PyVista, end a cell withpl.trame.show(mode=...)instead.htmlworks in any marimo session, whiletrame,serverandclientneed the browser on the machine running marimo. See examples/marimo/viewer.py. -
Plotter views:
PyVistaLocalView,PyVistaRemoteView,PyVistaRemoteLocalViewfor embedding in trame apps.