scivianna-vtk
Interactive VTK/PyVista visualization with vtk.js for Panel.
Installation
pip install scivianna-vtk
Usage
import param
import numpy as np
import panel_material_ui as pmui
from scivianna_vtk import VTKPlotter, polydata_to_dict
import pyvista as pv
# Create a simple sphere
sphere = pv.Sphere(theta_resolution=30, phi_resolution=30)
# Convert to vtk.js format
vtk_data = polydata_to_dict(sphere)
# Create plotter
plotter = VTKPlotter()
plotter.update_polydata(sphere)
# Show with Panel
plotter.show()
Features
- Interactive 3D visualization using vtk.js
- Support for PolyData, UnstructuredGrid, StructuredGrid
- Cell hover information display
- Clip plane visualization and control
- Binary data transfer for efficient performance
Dependencies
- panel >= 1.4.0
- param >= 2.0.0
- numpy >= 1.24.0
- pyvista >= 0.43.0
- vtk >= 9.0.0
License
MIT
Metadata
Release files for scivianna-vtk 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scivianna_vtk-0.1.11.tar.gz | 255.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scivianna_vtk-0.1.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 513.4 kB
Release files / scivianna_vtk-0.1.11.tar.gz
| Download URL | scivianna_vtk-0.1.11.tar.gz |
|---|---|
| Size | 255.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84c9dd18a72198ca4cc769898e76098b7a5cf6904f66c578bd1afba6e68ad8e7
|
|
BLAKE2b-256 checksum How to use checksums |
2d910be00ff6df6ba2b9cf06c8660e00a9c4895bb29e1cfcde2465f775c6f0a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Release files / scivianna_vtk-0.1.11-py3-none-any.whl
| Download URL | scivianna_vtk-0.1.11-py3-none-any.whl |
|---|---|
| Size | 257.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18b3bcd5db1d061215b7e9a8aaee03844ac9b1f9d0c71361534f78711320a4d0
|
|
BLAKE2b-256 checksum How to use checksums |
254d6d14f39d793f18300408a35d5c23504f1d78505859951b107b97bcbdb28c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|