Streamlit component that allows you to show PyVista 3d visualizations
Project description
stpyvista
Streamlit component that allows you to show PyVista 3d visualizations
Installation instructions
pip install stpyvista
Usage instructions
import pyvista as pv
import streamlit as st
from stpyvista import stpyvista, HTML_stpyvista
plotter = pv.Plotter()
# Store the 3D visualization in a sessions state variable
# to avoid re-rendering each time streamlit reruns the script
if "model" not in st.session.state:
plotter = pv.Plotter()
st.session.state.model = HTML_stpyvista(plotter)
stpyvista(st.session.state.model)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stpyvista-0.0.1.tar.gz
(15.8 kB
view hashes)
Built Distribution
stpyvista-0.0.1-py3-none-any.whl
(15.9 kB
view hashes)
Close
Hashes for stpyvista-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4877e665dbfa7a397307c2ea32980d1409c98270a95e0f2cb8ca535781756b54 |
|
MD5 | 071440d89cb12d82b476d428c403f9b2 |
|
BLAKE2b-256 | 4d8d8ac7d71eb4cae45e342787c04d6ca237433abfe1a639470496e86a09b269 |