Speck figures to Streamlit Web App
Latest Release | |
PyPI Downloads |
pip install st-speckmol==0.0.3
import streamlit as st
import glob
from st_speckmol import spec_plot
# Example files path
ex_files = glob.glob("examples/*.xyz")
with st.sidebar:
example_xyz = st.selectbox("Select a molecule",ex_files)
f = open(example_xyz,"r")
example_xyz = f.read()
res = spec_plot(example_xyz)
Meanwhile,ipyspeck in their latest release 0.6.1
has added the stspec module [avrabyt#1 (comment)], therefore feel free to use whatever convinient, as long as you are interested to have fun with beautiful speck strcutures 🧬 and streamlit 🎈 🎉