Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map not rendering in vscode jupyter notebook if ipywidgets >8.0 #1407

Closed
giswqs opened this issue Jan 20, 2023 Discussed in #1406 · 4 comments · Fixed by #1408
Closed

map not rendering in vscode jupyter notebook if ipywidgets >8.0 #1407

giswqs opened this issue Jan 20, 2023 Discussed in #1406 · 4 comments · Fixed by #1408

Comments

@giswqs
Copy link
Member

giswqs commented Jan 20, 2023

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

@giswqs
Copy link
Member Author

giswqs commented Jan 20, 2023

@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

giswqs added a commit that referenced this issue Jan 20, 2023
@giswqs giswqs linked a pull request Jan 20, 2023 that will close this issue
giswqs added a commit that referenced this issue Jan 20, 2023
@giswqs
Copy link
Member Author

giswqs commented Jan 20, 2023

geemap v0.19.5 now works with VS Code.

@vonnonn
Copy link

vonnonn commented Jan 20, 2023 via email

@giswqs
Copy link
Member Author

giswqs commented Jan 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants