Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting into a Streamlit Component [ Closed: Created by @denphi in the latest release]🔨 #1

Closed
5 tasks done
avrabyt opened this issue May 22, 2022 · 3 comments
Closed
5 tasks done

Comments

@avrabyt
Copy link
Owner

avrabyt commented May 22, 2022

Always goof to convert into a component for easy-usage.

To-do -

Done -

  • Working with Specklit
  • Deployable Streamlit App
avrabyt added a commit that referenced this issue May 23, 2022
avrabyt added a commit that referenced this issue May 23, 2022
@denphi
Copy link

denphi commented May 23, 2022

@avrabyt, ipyspeck 0.6.1 includes a preliminary wrapper for streamlit, you should try it.

from ipyspeck import stspeck
spec_xyz = stspeck.Speck(
data=_xyz,
atomScale=atom_Scale,
bondScale=bond_Scale,
outline=outline,
atomShade=atom_Shade,
bonds=bonds,
relativeAtomScale=relativeAtomScale,
bondThreshold=bondThreshold,
width="800px",
height="600px"
)

@avrabyt
Copy link
Owner Author

avrabyt commented May 23, 2022

@denphi Hey thanks for the heads up, I was just working on creating the component , few hours back in a separate branch! https://github.com/avrabyt/Specklit/tree/component-develop

Since it's developed I'll close it and use your stspeck module!

Btw, great work on this pythonic speck, your work is very much appreciated within the streamlit community (here's my twitter thread on it - https://twitter.com/Avra_b/status/1527332154291593217)

And now you have this component done, wow 🚀 🎉
Cheers
Avra

@avrabyt
Copy link
Owner Author

avrabyt commented May 23, 2022

stspeck is implemented in the latest release of ipyspeck 🚀 by @denphi

from ipyspeck import stspeck

@avrabyt, ipyspeck 0.6.1 includes a preliminary wrapper for streamlit, you should try it.

from ipyspeck import stspeck spec_xyz = stspeck.Speck( data=_xyz, atomScale=atom_Scale, bondScale=bond_Scale, outline=outline, atomShade=atom_Shade, bonds=bonds, relativeAtomScale=relativeAtomScale, bondThreshold=bondThreshold, width="800px", height="600px" )

@avrabyt avrabyt closed this as completed May 23, 2022
@avrabyt avrabyt pinned this issue May 23, 2022
@avrabyt avrabyt changed the title Converting into a Streamlit Component 🔨 Converting into a Streamlit Component [ Closed: Created by @denphi in the latest release]🔨 May 23, 2022
AvratanuBiswas added a commit that referenced this issue May 23, 2022
AvratanuBiswas added a commit that referenced this issue May 23, 2022
avrabyt added a commit that referenced this issue May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants