no show from showmol
WenchangLu opened this issue · 4 comments
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)
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
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.
perfect that worked thanks!