Esri / arcgis-python-api

Documentation and samples for ArcGIS API for Python
https://developers.arcgis.com/python/
Apache License 2.0
1.89k stars 1.1k forks source link

MapView widget does not render in ArcGIS 1.9.1 #1580

Closed crackernutter closed 1 month ago

crackernutter commented 1 year ago

Describe the bug When trying to render the mapview JavaScript widget in the arcgispro-py3 environment, or a cloned environment, it does not render

To Reproduce Steps to reproduce the behavior:

from arcgis.gis import GIS
gis=GIS()
m=gis.map()
m

error: No error - it just won't render

<copy the full error message here>

Screenshots If applicable, add screenshots to help explain your problem.

Expected behavior Except a javascript mapview to render

Platform (please complete the following information):

Additional context I've gotten this to work before by manually running the following two lines: jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter labextension install arcgis-map-ipywidget@1.9.1 (or whatever version)

But now it seems like jupyterlab-manager is installed, and now installing the widget is asking me to install nodejs, and when I do, and then rerun the line, the build fails. In short - how do I get the JavaScript map widget to render in the Jupyter Lab environment.

nanaeaubry commented 1 year ago

Hello, Thanks for reporting! We are aware of the issue and trying to work on it. This is occurring due to an update in other dependencies that are no longer working with jupyter labs 2 (the recommended version for our widget). We are actively working on this but cannot provide a fix right now other than suggesting you use jupyter notebooks for any workflows needing a rendered widget.

nanaeaubry commented 6 months ago

Just an update that we are close to releasing a new mapping widget that will be compatible with Jupyter Labs 4! Stay tuned :)

nanaeaubry commented 1 month ago

@crackernutter Please use the latest install of arcgis and the new arcgis-mapping packages to try again: conda install -c esri arcgis arcgis-mapping

Documentation should be updated shortly with the new guides on how to use this module