laptop and a wrench

漏洞

Installing ArcGIS API for Python via PIP installs ipywidgets version 8.0.4 which is incompatible with the Jupyter Notebook.

上次发布: January 30, 2023 ArcGIS API for Python
漏洞 ID 编号 BUG-000155321
已提交January 24, 2023
上次修改时间June 5, 2024
适用范围ArcGIS API for Python
找到的版本2.0.1
操作系统Windows OS
操作系统版本10.0 64 Bit
修正版本Q4 2023
状态Fixed

解决办法

From a command prompt:

  1. Downgrade the ipywidgets package to version 7.7 by entering pip install ipywidgets==7.7.0.
  2. Start a Jupyter notebook by entering The Jupyter Notebook.
  3. Once the new tab opens, create a new notebook with Python 3 as the kernel.
  4. In the first cell of the notebook, enter the following code to create a GIS object and a map view using the arcgis package:

from arcgis.gis import GIS

my_gis = GIS()

m = my_gis.map()

m

Notice the map view widget now loads appropriately.

重现步骤

漏洞 ID: BUG-000155321

软件:

  • ArcGIS API for Python

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项