Skip to main content

PyVista-like API for VTK.wasm

Project description

pyvista-wasm

JupyterLite Stlite marimo

PyVista-like API for VTK.wasm — bring intuitive 3D visualization to the browser using WebAssembly.

Try it with JupyterLite Try it with Stlite Try it with marimo
jupyterlite-preview stlite-preview marimo-preview

Table of Contents

Install

PyPI

pip install pyvista-wasm

For Pyodide/stlite:

import micropip

await micropip.install("pyvista-wasm")

Usage

import pyvista_wasm as pv

plotter = pv.Plotter()
plotter.add_mesh(pv.Sphere(), color="red")
plotter.show()

Differences from pyvista-js

This project replaces the vtk.js rendering backend used in pyvista-js with VTK.wasm (@kitware/vtk-wasm npm package).

Key differences:

  • Rendering backend: VTK.wasm (WebAssembly port of VTK C++) instead of vtk.js (pure JavaScript reimplementation)
  • API style: VTK.wasm uses vtk.vtkRenderer() factory functions on a namespace object, vs vtk.js's vtk.Rendering.Core.vtkRenderer.newInstance() hierarchy
  • Initialization: VTK.wasm requires async initialization via vtkWASM.createNamespace() to load the WASM binary
  • Feature parity: VTK.wasm provides access to the full VTK C++ API, enabling features not available in vtk.js

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.

License

Apache License 2.0 © Tetsuo Koyama

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

pyvista_wasm-0.7.0.tar.gz (294.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyvista_wasm-0.7.0-py3-none-any.whl (82.2 kB view details)

Uploaded Python 3

File details

Details for the file pyvista_wasm-0.7.0.tar.gz.

File metadata

  • Download URL: pyvista_wasm-0.7.0.tar.gz
  • Upload date:
  • Size: 294.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pyvista_wasm-0.7.0.tar.gz
Algorithm Hash digest
SHA256 7bbc38edd5c36e2efc72e3f4ee91a1f122fd8d0971a82537dda838c16874d8fb
MD5 a33ae91faa3f4ba192f4c0ad3aa8a0c0
BLAKE2b-256 ea608c4a594241d4592a11578f2100f81466878afd94de84ba128e12074a6686

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyvista_wasm-0.7.0.tar.gz:

Publisher: release-please.yml on tkoyama010/pyvista-wasm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyvista_wasm-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: pyvista_wasm-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 82.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pyvista_wasm-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1db92500d8773ba4e80d4977a89c1945783bed65792da128d58ab1ff4a1348d
MD5 50168040e4714ed44b68ce8c04d83cb7
BLAKE2b-256 1464448b245143105224f606c8a1dacd92570f18696ac440985f68422d295e03

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyvista_wasm-0.7.0-py3-none-any.whl:

Publisher: release-please.yml on tkoyama010/pyvista-wasm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page