enricocid / Specklit

Streamlit Component for creating Spec molecular structures within Streamlit Web app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Specklit

Speck figures to Streamlit Web App

Latest Release
PyPI Downloads

Installation

pip install st-speckmol==0.0.3

Example

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)

Streamlit App

Speclit demo

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 🎈 🎉

References

Speck Online

Speck Python package

Example-Source

About

Streamlit Component for creating Spec molecular structures within Streamlit Web app.

License:MIT License


Languages

Language:Python 100.0%