如何解决Arcgis python中奇怪的未处理错误问题

问题描述

我正在尝试开始使用 Arcgis for python。但是,我在 jupyter 笔记本上遇到了一个奇怪的“未处理的错误”,如下所示

from arcgis.gis import GIS

gis = GIS()

m = gis.map()

m

错误

未处理的错误!有关详细信息,请参阅浏览器控制台。

enter image description here

当我尝试查看 Firefox 浏览器控制台时,我收到一些奇怪的 js 错误。日志是

enter image description here

我想知道为什么会出现错误以及如何修复?

解决方法

我认为问题出在 arcgis 的版​​本和 arcgis 的一些默认设置上。

在我使用 arcgis 更新 conda install -c esri arcgis 后,我通过 jupyter nbextension enable arcgis --py --sys-prefix 在浏览器中启用了 jupyter notebook 扩展。这解决了问题。