gee-community / geemap

A Python package for interactive geospatial analysis and visualization with Google Earth Engine.
https://geemap.org
MIT License
3.47k stars 1.09k forks source link

pydeck widgets not show up #1392

Closed benerain closed 1 year ago

benerain commented 1 year ago

Environment Information

Mac M1 chip

followed GEE tutorial #37 How to use Earth Engine with pydeck for 3D terrain visualization

view_state = pdk.ViewState(
    latitude=36.15, longitude=-111.96, zoom=10.5, bearing=-66.16, pitch=60
)

r = pdk.Deck(layers=[ee_layer], initial_view_state=view_state)

r.show()

Description

I already followed your instruction to create a new conda environment and install the needed package but still get this problem

截屏2023-01-11 上午10 45 49

the detail in the red box: Failed to create view for 'JupyterTransportView' from module '@deck.gl/jupyter-widget' with model 'JupyterTransportModel' from module '@deck.gl/jupyter-widget' TypeError: Cannot read properties of undefined (reading 'length') at n.updateTooltip (http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:766603) at n.initialize (http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:765694) at n.value (http://localhost:8888/nbextensions/pydeck/index.js?v=20230111103133:18:454591) at new t.View (http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:248055) at new C (http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:755696) at new k (http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:763285) at new O (http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:764935) at n. (http://localhost:8888/nbextensions/pydeck/index.js?v=20230111103133:18:454155) at new n (http://localhost:8888/nbextensions/pydeck/index.js?v=20230111103133:18:454303) at http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:742192

and the detail in the chrome console said:

截屏2023-01-11 上午10 48 18

the bug has stuck me for several hours. do you have any ideas of how to solve this?

Best Regards

giswqs commented 1 year ago

This is a pydeck issue rather than geemap. Try running some examples from https://pydeck.gl/. If it does not work, then it is a pydeck problem.

Also, the pydeck earth engine package no longer works. See https://github.com/UnfoldedInc/earthengine-layers/issues/133. It is not something that can be resolved by geemap. Don't waste your time trying this.

benerain commented 1 year ago

ok, thank you for the reply