-
Notifications
You must be signed in to change notification settings - Fork 36
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
Comments
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? Let me know if this work. |
perfect that worked thanks! |
Hi C-Marquet,
Thanks for your help. With py3dmol==2.0.0.post2, the stmol example works
perfectly. In my application, I have the following to add to the view.
the first addVolumetricData works fine but addModel does not work. addModel
will also destroy the view from addVolumetricData
Any idea to fix this?
Wenchang
rho_view.addVolumetricData(rho_data, "cube", {'isoval': isosurface_value,
'color': iso_color, 'opacity': 0.85})
rho_view.addModel(rho_data, "cube", 'mol')
…On Wed, Jan 25, 2023 at 10:16 AM C-Marquet ***@***.***> wrote:
perfect that worked thanks!
—
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALXCDDROYKSTU4ICZI5Z6XLWUE7VXANCNFSM6AAAAAAT7PIN24>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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)
The text was updated successfully, but these errors were encountered: