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.4.tar.gz
(288.6 kB
view hashes)
Built Distribution
stpyvista-0.0.4-py3-none-any.whl
(289.9 kB
view hashes)
Close
Hashes for stpyvista-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b24ae186a90472e01ab9632717023017ece1d01f7007ddc090a9e03f2dfe9a17 |
|
MD5 | 6681796a697719d4698050dbee201c18 |
|
BLAKE2b-256 | 454c0a81261d6fea72c4003a4837c1ccea6f263480ca5a633c703b2b687f726d |