nglviewer / nglview

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

No widget renders on Jupyterlab 4.1 #1101

Closed salotz closed 7 months ago

salotz commented 7 months ago

I'm running a test on Jupyterlab with NGLView. I try to run the demo and I don't get any errors but it doesn't render anything.

Am I missing something?

image

I'll add that I am running this through Jupyterhub on a kubernetes cluster. The Jupyterlab instance is running in this container image: quay.io/jupyter/minimal-notebook

hainm commented 7 months ago

hi @salotz

I could not reproduce your issue in my laptop. So I guess it's something with your cluster setup (my random guess).

image
hainm commented 7 months ago

Here is my conda command: conda create -n test python=3.10 jupyterlab=4.1.2 nglview=3.1.1 -c conda-forge -y

salotz commented 7 months ago

Thanks for trying out.

Could it be my browser/WebGL setup perhaps?

Info:

image

image

The official Khronos page seems to think so (https://get.webgl.org/):

image

But some of the NGL related pages don't seem to work (https://molstar.org/viewer/).

image

I'll try an update/reboot. Sometimes with the rolling releases I am on things do get broken.

salotz commented 7 months ago

I think its a browser thing. I upgraded and rebooted and I get something but its definitely not working correctly. This is after doing some rotation/translation:

image

salotz commented 7 months ago

Should have checked before, but looks to be working in Firefox.

hainm commented 7 months ago

Weird. I saw similar thing in google colab (playing trajectory and the structures from multiple frames overlaps.

hainm commented 7 months ago

On Thu, Feb 22, 2024 at 10:32 PM salotz @.***> wrote:

Should have checked before, but looks to be working in Firefox.

Oh nice

Reply to this email directly, view it on GitHub https://github.com/nglviewer/nglview/issues/1101#issuecomment-1960687106, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB645NEN3B34RX4VAFZ733YVAEVRAVCNFSM6AAAAABDVCWSU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRQGY4DOMJQGY . You are receiving this because you commented.Message ID: @.***>

salotz commented 7 months ago

I'll close this. I think its either my browser or something upstream with ngl or other projects.

I checked a bunch of WebGL demos and they all seemed to work in Chrome just fine.