When using geemap,after runing :
Map = geemap.Map()
Map
there is a mistake about the interact window of the map,which says:
Failed to load model class 'VBoxModel' from module '@jupyter-widgets/controls'
Error: Module @jupyter-widgets/controls, version ^1.5.0 is not registered, however, 2.0.0 is
at f.loadClass (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.a63a8d293fb35a52dc25.js?v=a63a8d293fb35a52dc25:1:75057)
at f.loadModelClass (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:10729)
at f._make_model (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:7517)
at f.new_model (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:5137)
at f.handle_comm_open (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:3894)
at _handleCommOpen (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.a63a8d293fb35a52dc25.js?v=a63a8d293fb35a52dc25:1:73473)
at C._handleCommOpen (http://localhost:8888/static/lab/jlab_core.1058fa9b4dc10b69b0bb.js:2:854081)
at async C._handleMessage (http://localhost:8888/static/lab/jlab_core.1058fa9b4dc10b69b0bb.js:2:856382)
出现这样的问题,大概率是
库的版本问题,我使用下面的链接解决了这个问题,折腾了1天,啊,真是
pip install -U jupyterlab ipywidgets jupyterlab-widgets
感谢这位老哥
python - Jupyter Lab issue displaying widgets (javascript error) - Stack Overflow