Correcting Map Widget Display Errors in Jupyter Lab

Last Published: April 25, 2020

Error Message

When using the API for Python to display a WebMap with the Map Widget code, the following code displays in Jupyter Notebook but not in Jupyter Lab:

from arcgis.gis import GIS
gis = GIS()
map =
User-added image
User-added image


The map widget was built using the ipywidgets library for Jupyter Notebooks, which doesn't port directly to jupyterlab.

Solution or Workaround

  1. Download the Anaconda Python distribution application (
  2. Install it so that all users have access to Anaconda.
User-added image
  1. After installation, open the Anaconda Prompt – search programs or in Windows in the Anaconda3 application folder. Right-click and select Run As Administrator
User-added image
  1. When the application opens, test to see what version of arcgis module is loaded by entering in the Anaconda Prompt:
conda list
  1. If the list shows 1.5, move to Step 5.
User-added image
  1. If the list shows 1.4, in the Anaconda Command Prompt type:
conda upgrade -c esri arcgis
  1. When prompted to "Proceed [y]/n?" press y and press Enter on the keyboard
  2. Once the installation is complete the Anaconda Prompt indicates a successful install with “done”
  1. In the same Anaconda Command Prompt console install the nodejs module (a platform for easily building fast, scalable network applications). In the Prompt type:
conda install -c conda-forge nodejs
and press Enter on the keyboard
  1. In the same console install the following two Jupyter Lab extensions:
jupyter labextension install @jupyter-widgets/jupyterlab-manager
and press Enter on the keyboard, this module may take time to load.
jupyter labextension install arcgis-map-ipywidget@1.5.0
and press Enter on the keyboard, this module may take time to load.

Once the arcgis module is updated and the nodejs and two Jupyter Lab extensions are installed running the Map Widget in Jupyter Lab will display properly. 

Article ID:000018988

  • ArcGIS API for Python

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic