nglviewer / nglview

Jupyter widget to interactively view molecular structures and trajectories
http://nglviewer.org/nglview/latest/
Other
824 stars 134 forks source link

Component handling not working properly under Google Colab #1094

Closed mnmelo closed 10 months ago

mnmelo commented 11 months ago

I've got diverging results when trying to show two simultaneous structures (a protein and, overlayed, its Martini 3 CG transformation) in Jupyter Lab and in Google Colab.

In Jupyter all seems as I want: jupyter

In Colab, however, the second component is ignored and the ball_and_stick rendering is applied to the first component: colab

Refreshing the Colab page seems to fix this in some cases: colab_refresh

Another possibly important aspect is that I must update ipywidgets from within Colab, and then can only restart the session, since a runtime restart loses changed files. Prior to update ipywidgets is version 7.7.1.

Help appreciated! I attach the used structure files. structures.zip

hainm commented 11 months ago

Dear @mnmelo: I am sorry to hear that, but (yeah, there is always a but), it's really up to google to fix the colab. It's out of nglview's hand.

mnmelo commented 11 months ago

Of course. I was just wondering whether this could be an issue in how nglview/NGL handle the different environments.

hainm commented 11 months ago

I don't think so. IMO, if nglview works well for notebook and lab, it should be something else.

hainm commented 10 months ago

Close as "won't fix" since there is nothing I can do. colab needs to do something.