Trame interface for PyVista
Project description
trame-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]"
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. -
Plotter views:
PyVistaLocalView,PyVistaRemoteView,PyVistaRemoteLocalViewfor embedding in trame apps. -
plotter.tramenamespace: registered as a PyVista plotter component so exporters live under the trame namespace:import pyvista as pv pl = pv.Plotter() pl.add_mesh(pv.Sphere()) pl.trame.export_vtksz('scene.vtksz') pl.trame.export_html('scene.html')
-
Sphinx directive:
trame_pyvista.sphinx_extprovides theofflineviewerdirective used by PyVista docs to embed exported.vtkszscenes. Add toconf.py:extensions = ['trame_pyvista.sphinx_ext']
Usage
import pyvista as pv
pv.set_jupyter_backend('trame')
pl = pv.Plotter()
pl.add_mesh(pv.Wavelet())
pl.show()
Custom UI:
from trame_pyvista import plotter_ui
ui = plotter_ui(plotter, mode='trame')
See examples/ for runnable scripts covering local/remote views, custom
UIs, and toolbar customization.
Development
just sync # create venv and install dev deps
just test # unit tests
just test-playwright # Sphinx + browser integration tests
just lint # pre-commit (ruff, etc.)
just typecheck
just build
License
MIT. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trame_pyvista-0.1.1.tar.gz.
File metadata
- Download URL: trame_pyvista-0.1.1.tar.gz
- Upload date:
- Size: 43.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31dd408ab682f7e3915ba98afdb84b6f612384f3031d2828485a296f59dab6fe
|
|
| MD5 |
ad4ca9cffdb97fab991951dbbdc2644b
|
|
| BLAKE2b-256 |
b8b6e9bb6eaf4d34c76ef5d6760dba7be11e003715921dd941aea6d2643b1211
|
Provenance
The following attestation bundles were made for trame_pyvista-0.1.1.tar.gz:
Publisher:
ci.yml on pyvista/trame-pyvista
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trame_pyvista-0.1.1.tar.gz -
Subject digest:
31dd408ab682f7e3915ba98afdb84b6f612384f3031d2828485a296f59dab6fe - Sigstore transparency entry: 1487237705
- Sigstore integration time:
-
Permalink:
pyvista/trame-pyvista@deb58fe13946988705ce5d66afad726a0115e524 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/pyvista
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@deb58fe13946988705ce5d66afad726a0115e524 -
Trigger Event:
push
-
Statement type:
File details
Details for the file trame_pyvista-0.1.1-py3-none-any.whl.
File metadata
- Download URL: trame_pyvista-0.1.1-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83429a49b92c7edb3b25a5d0cfd95881c4d43f1c9fdff70bef17abef39d66fe4
|
|
| MD5 |
b03faadc66febc0789a692aa75a0b223
|
|
| BLAKE2b-256 |
486a88ce32c7a93ea8105e1c8cb0f9cf10b9e289aaf9fa1b65630989a5812015
|
Provenance
The following attestation bundles were made for trame_pyvista-0.1.1-py3-none-any.whl:
Publisher:
ci.yml on pyvista/trame-pyvista
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trame_pyvista-0.1.1-py3-none-any.whl -
Subject digest:
83429a49b92c7edb3b25a5d0cfd95881c4d43f1c9fdff70bef17abef39d66fe4 - Sigstore transparency entry: 1487237730
- Sigstore integration time:
-
Permalink:
pyvista/trame-pyvista@deb58fe13946988705ce5d66afad726a0115e524 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/pyvista
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@deb58fe13946988705ce5d66afad726a0115e524 -
Trigger Event:
push
-
Statement type: