Skip to content

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

@frenet

Description

@frenet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions