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

no show from showmol #40

Open
WenchangLu opened this issue Jan 18, 2023 · 4 comments
Open

no show from showmol #40

WenchangLu opened this issue Jan 18, 2023 · 4 comments

Comments

@WenchangLu
Copy link

Recently I have problem with showmol in streamlit.
The following example does not work when I run "streamlit run ex.py"
Can you please help me on this.

from stmol import showmol
import py3Dmol

1A2C

Structure of thrombin inhibited by AERUGINOSIN298-A from a BLUE-GREEN ALGA

xyzview = py3Dmol.view(query='pdb:1A2C')
xyzview.setStyle({'cartoon':{'color':'spectrum'}})
showmol(xyzview, height = 500,width=800)

@C-Marquet
Copy link

I have the same problem when I run streamlit locally (i checked streamlit version 1.17.0 and version 1.16.0), while works in the cloud version (streamlit version 1.16.0). the implementations are the same, and i haven't checked any other version differences

@napoles-uach
Copy link
Owner

Hi, @WenchangLu sorry for the delay. Also for you @C-Marquet, could you try to install py3dmol in this way?
pip install py3Dmol==2.0.0.post2

Let me know if this work.

@C-Marquet
Copy link

perfect that worked thanks!

@WenchangLu
Copy link
Author

WenchangLu commented Jan 26, 2023 via email

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

3 participants