OpenGeoscience / geonotebook

A Jupyter notebook extension for geospatial visualization and analysis
Apache License 2.0
1.08k stars 141 forks source link

Annotations buttons not working #161

Closed davv-deimos closed 6 years ago

davv-deimos commented 6 years ago

Hello guys.

I'm using the latest image from docker hub and for some reason the annotations' buttons don't to be working.

I'm using Firefox 57 on Linux with all of my add-ons turned off.

Can someone help me on this. Thank you in advance!

jbeezley commented 6 years ago

I just tried on the latest image

$ docker pull geonotebook/geonotebook
latest: Pulling from geonotebook/geonotebook
Digest: sha256:b3b973ad44d45b7c01c6dfe9d4aa48fb0f24edb82dcd1a12c109d77c1e69b1b3
Status: Image is up to date for geonotebook/geonotebook:latest

Using Firefox 58 on Linux the annotations interactions work for me (they draw correctly and are accessible from the python kernel). Could you check to see if there are any errors printed in the javascript console?

davv-deimos commented 6 years ago

could you please tell me how to open that console?

jbeezley commented 6 years ago

You can open it from the "Web Developer" menu item, or just by pressing "Ctrl-Shift-i". Just see if it prints anything out when trying to draw an annotation. That information would be helpful. Thanks.

davv-deimos commented 6 years ago

Thank you!

Is this it? imagem

jbeezley commented 6 years ago

Thanks, that's helpful. It looks like webgl is failing. I'm not sure if our canvas fallback works for annotations, but I'll check. I might be able to provide a work around. Let me explore it a bit.

davv-deimos commented 6 years ago

so that means the problem is not on my side?

jbeezley commented 6 years ago

Yes and no. It's likely it would work if webgl was supported on your browser. You could try going to https://get.webgl.org/, I think that site provides some tips on how to fix it. On our side though, fall-back to a non-webgl renderer would be a nice feature, so I'll try to get that working.

davv-deimos commented 6 years ago

So, I followed this guide and forced webgl by making webgl.force-enabled = True, but it still doesn't work and I get this console output

imagem

davv-deimos commented 6 years ago

I just tried Google Chrome and the problem persists. imagem I though this might help you :)

jbeezley commented 6 years ago

I pushed a branch that might fix your issue. Could you test out the tag geonotebook/geonotebook:fix-webgl-fallback and see if that works for you?

docker run -it -v $PWD/notebooks:/notebooks -p 8888:8888 geonotebook/geonotebook:fix-webgl-fallback
davv-deimos commented 6 years ago

For now it seems to be working, on both Firefox and Chrome. I'm going to keep following the tutorial/examples.

Than you very much for your help!