🧊 stpyvista: Show PyVista 3D visualizations in Streamlit

Short answer is no. The implementation is rudimentary and the moment the PyVista plotter is serialized from panel, the communication is severed.

If your application relies significantly from interacting with a 3D model, I recommend you building a panel or a trame application instead. Trame in particular is really powerful, it’s basically a web Paraview:

If you are lucky this app won't have crashed...

2 Likes

Thank you for the quick response. Will look into using panel and trame, I appreciate the suggestions!

1 Like

@rahiq1000, and the long answer is yes*, but using an experimental feature included in stpyvista==0.0.17.

sphere_interactive_stpyvista

The source code for that example: stpyvista-tests/experimental/return_camera.py at main · edsaac/stpyvista-tests · GitHub

And check it out deployed:
stpyvista examples and documentation

2 Likes