molplotly icon indicating copy to clipboard operation
molplotly copied to clipboard

Streamlit Integration

Open Tonylac77 opened this issue 1 year ago • 1 comments

Hi,

I was wondering if there was any way of integration molplotly into a streamlit app. This is some very code I have :

fig = visualize_chemical_space(library_to_visualise, method, fingerprint)
st.plotly_chart(fig)
app = molplotly.add_molecules(fig=fig, df=library_to_visualise, smiles_col='SMILES', title_col='ID')
app.run_server(mode='inline', port=8700, height=1000)

I guess this working out of the box was a long shot. If you have any ideas to make this work (my current idea was to create a button to link to the URL where the molplotly plot is hosted) I'd be grateful.

A lot of CADD/cheminformatics people seem to be using streamlit for some basic webapps. I think this would be an awesome feature to be able to add.

Tonylac77 avatar Jun 05 '24 19:06 Tonylac77

I am also currently looking for a solution to this problem. I think it's relevant to all institutions that are involved in DD.

stacyrse avatar Sep 08 '25 12:09 stacyrse