We’ve recently been improving the support between PyVista and Trame to provide a cutting-edge viewer for Jupyter. This is included in PyVista’s latest 0.38.1
release!
pip install 'pyvista[jupyter]>=0.38.1'
- Trame provides a high-level framework for building reactive, stateful web applications
- PyVista provides a high-level framework for 3D visualization, exposing VTK in a “Pythonic” manner
High-level framework 1 + high-level framework 2 = a streamlined approach to making powerful web applications with 3D visualization front and center.
An example of this I am most thrilled to share is with Jupyter Notebooks. For PyVista’s latest release, we included a Jupyter widget built on Trame that will connect to a PyVista Plotter to stream both server-rendered visualizations and/or the scene data for client-side rendering with VTK.js.
I’d include a video, but I’m limited to upload sizes of 4Mb. Perhaps check out my tweet:
https://twitter.com/banesullivan/status/1621535825103126530?s=20&t=h4BRJe_dn-jcU7Boowh16A
More information
- Jupyter docs: Trame Jupyter backend for PyVista — PyVista 0.38.1 documentation
- Trame web app examples: pyvista/examples_trame at main · pyvista/pyvista · GitHub
Feel free to post questions here, and I’d be happy share more!