arcgis-python-api: Widget JavaScript Not Detected
Trying to run the samples -
Configured the Jupyter Notebook environment via
%%sh
conda install -c conda-forge ipywidgets
conda install -c esri arcgis
Both of those installed fine
Enabled widgets via
%%sh
jupyter nbextension enable --py --sys-prefix widgetsnbextension
Enabling notebook extension jupyter-js-widgets/extension… - Validating: OK
Then if I try to instantiate a sample map:
from arcgis.gis import GIS
gis = GIS()
map = gis.map('Seattle, WA', 6)
map
I get a JavaScript error: Widget Javascript not detected. It may not be installed properly. Did you enable the widgetsnbextension? If not, then run “jupyter nbextension enable --py --sys-prefix widgetsnbextension”
Non-ESRI widgets work fine in my other notebooks.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 51 (17 by maintainers)
It works! Thank you @rohitgeo @rwmajor2
We have released a new update (v1.2.3) that should resolve the issue. Can you please try it out? The commands below create a new conda environment and install the ArcGIS Python API in it:
@aitorcalero Thanks for your input. I will look at this scenario further.
@aitorcalero @prasunkgupta we have released an update to the arcgis package that should resolve the problem.
The following commands can be used to create a new environment in conda and install the new package in it:
This should install arcgis v1.2.2 along with nbextensions < 3 and ipywidgets < 7 that should resolve the problems you are seeing.
@aitorcalero the log indicates that you still have nbextensions v3.0.0. Can you check with “conda list”?