ENV859 / ArcGIS-PythonAPI

John's take on the ArcGIS Python API
10 stars 90 forks source link

Map cannot be displayed in Jupyter lab but works fine in notebook #1

Open frenet opened 4 years ago

frenet commented 4 years ago

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

Map cannot be displayed in Jupyter lab, but Map can be displayed in Jupyter notebook. What's the reason, how to fix it?

When the .ipynb give errors "Error displaying widget: model not found", Browser console log has following errors:
renderer.js:45 Error: widget model not found at x.get_model (manager.js:341) at p.renderModel (renderer.js:38)

#################### Environment: ArcGIS Pro 2.5, windows 10

(deeplearning) C:\Users\search>jupyter labextension list JupyterLab v1.2.6 Known labextensions: app dir: C:\Users\search\AppData\Local\ESRI\conda\envs\deeplearning\share\jupyter\lab @bokeh/jupyter_bokeh v1.2.0 enabled ok @jupyter-widgets/jupyterlab-manager v1.0.3 enabled ok arcgis-map-ipywidget v1.8.0 enabled ok

works in jupyter notebook works in jupyter notebook

errors in jupyter lab errors happened in jupyter lab