Skip to content

geometric_gnn_101.ipynb : py3Dmol==1.8.0 does not work in current Google Colab (and in recent local Jupyter) #13

Description

@smg3d

In geometric_gnn_101.ipynb, the py3Dmol installation specifies version 1.8.0:

!pip install -q py3Dmol==1.8.0

On both my external setup (Google Colab Pro / Chrome 127.0.6533.88) and local setup (jupyterlab 4.0.11 / Chrome 127.0.6533.88), the py3dmol 1.8.0 (as well as 1.8.1 and 2.0.0) does not display structures. py3dmol works as expected for any version > 2.0.0 (starting from 2.0.0.post1).

For a quick test on Google Colab :

# DOES NOT WORK
!pip install py3Dmol==1.8.0

import py3Dmol
view = py3Dmol.view(query='pdb:1ubq')
view.setStyle({'cartoon':{'color':'spectrum'}})
view
# WORKS
!pip install py3Dmol==2.0.0.post1

import py3Dmol
view = py3Dmol.view(query='pdb:1ubq')
view.setStyle({'cartoon':{'color':'spectrum'}})
view

Note : problem not likely to be with my Chrome setup (Arch Linux) since I get the same results with another gmail account, on windows/vmware and on macos/vmware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions