Interactive VTK/PyVista visualization with vtk.js for Panel
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scivianna_vtk-0.1.1.tar.gz
(244.9 kB
view details)
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
scivianna_vtk-0.1.1-py3-none-any.whl
(245.3 kB
view details)
File details
Details for the file scivianna_vtk-0.1.1.tar.gz.
File metadata
- Download URL: scivianna_vtk-0.1.1.tar.gz
- Upload date:
- Size: 244.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1816513e6c687784147fe20f81300ad0a77f1eea7e784af5ab68645a34c47a26
|
|
| MD5 |
11019b6b09b2dfc30c0503cbfae4af80
|
|
| BLAKE2b-256 |
7c1988ef02f7530fcbe9f493522b34a3bde889f5729406c04008527f7db2d9d0
|
File details
Details for the file scivianna_vtk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: scivianna_vtk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 245.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3c2b80b5e4e41a9a9f44fe2d304d139f355ee15389be7a4542f709416335de4
|
|
| MD5 |
95fd080bcf9bd4c3b3cf985fb8f386ec
|
|
| BLAKE2b-256 |
c2e5770df58db1f7aeb42d9532b21a2b25e376050ebd54c500df3e5c2f02a357
|