gee-community/geemap

map not rendering in vscode jupyter notebook if ipywidgets >8.0

giswqs opened this issue · 4 comments

Discussed in #1406

Originally posted by vonnonn January 19, 2023
image

I've created two clean environments, one with python=3.7 and one with 3.9, only installing geemap with the conda-forge channel. The geemap.Map will render in a jupyter notebook env from CLI but not VSCODE. So, I assume this is an issue with the jupyter.widget, but it's just odd that ipyleaflet will render but not geemap. I also added a control to the map since geemap defaults with several (this still might be the problem. I haven't explored all controls).

Thanks for any help in advance,
Josh

@vonnonn It took me a while to debug. The reason is that ipywidgets 8.0 does not support VS code. If you create a fresh env and install ipywidgets <8 first, then install geemap. It should work. I will pin the ipywidgets version and make a new release

microsoft/vscode-jupyter#8552

geemap v0.19.5 now works with VS Code.

@vonnonn My pleasure. Thank you for the kind words. Feel free to open issues if you run into any problems with geemap.