question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Widget JavaScript Not Detected

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:51 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
prasunkguptacommented, Aug 30, 2017

It works! Thank you @rohitgeo @rwmajor2 image

1reaction
rohitgeocommented, Sep 2, 2017

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:

conda create -n newenvname python=3.6
activate newenvname
conda install -c esri arcgis

# try it out
jupyter notebook
Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter notebook: Widget Javascript not detected
Run the following command: jupyter nbextension enable --py --sys-prefix widgetsnbextension , then restart the kernel in Jupyter should do ...
Read more >
Widget Javascript not detected · Issue #541 - GitHub
Widgets fail to load with "Widget Javascript not detected. It may not be installed properly." jupyter/help#32.
Read more >
ipywidgets :: Widget Javascript not detected :: Best way to fix it?
Widget Javascript not detected. It may not be installed properly. Did you enable the widgetsnbextension? If not, then run "jupyter ...
Read more >
"Widget Javascript not detected" error - Python Forum
It may not be installed or enabled properly. I located the following relevant thread that addresses this error: Widget Javascript not detected
Read more >
Python – Jupyter notebook: Widget Javascript not detected
Question: I installed python3 and jupyter notebook using pip3 in MacOs 10.9. When I try to run the widget it gives error that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found