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

debugging from notebook

from jupyter_core.paths import jupyter_config_path, jupyter_data_dir, jupyter_runtime_dir, jupyter_path
import jupyter_core.version

!echo !jupyter --version and --path
!jupyter --version
!jupyter --path
!echo

!echo !cat /usr/etc/jupyter/nbconfig/notebook.json
!cat /usr/etc/jupyter/nbconfig/notebook.json
!echo
!echo !ls /usr/local/share/jupyter/nbextensions/jupyter-js-widgets
!ls /usr/local/share/jupyter/nbextensions/jupyter-js-widgets
!echo

print('version:', jupyter_core.version.__version__)
for p in jupyter_config_path():
    print('config:', p)

# list of directories to search for data files...
for p in jupyter_path():
    print('jupyter_path:', p)

print('jupyter_data_dir:', jupyter_data_dir())
print('jupyter_runtime_dir:', jupyter_runtime_dir())

import ipywidgets as widgets
widgets.HTML(value="Hello <b>World</b>")

output

!jupyter --version and --path
4.1.0
config:
    /u/s8weber/.jupyter
    /usr/etc/jupyter
    /usr/local/etc/jupyter
    /etc/jupyter
data:
    /u/s8weber/.local/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
runtime:
    /u/s8weber/.local/share/jupyter/runtime

!cat /usr/etc/jupyter/nbconfig/notebook.json
{
  "load_extensions": {
    "jupyter-js-widgets/extension": true
  }
}
!ls /usr/local/share/jupyter/nbextensions/jupyter-js-widgets
extension.js  extension.js.map

version: 4.1.0
config: /u/s8weber/.jupyter
config: /usr/etc/jupyter
config: /usr/local/etc/jupyter
config: /etc/jupyter
jupyter_path: /u/s8weber/.local/share/jupyter
jupyter_path: /usr/local/share/jupyter
jupyter_path: /usr/share/jupyter
jupyter_data_dir: /u/s8weber/.local/share/jupyter
jupyter_runtime_dir: /u/s8weber/.local/share/jupyter/runtime

** 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"

using python3 and jupyterhub… not sure what next to look at.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:49 (16 by maintainers)

github_iconTop GitHub Comments

8reactions
jbednarcommented, Dec 19, 2016

I don’t know about anyone else, but I still see this message ALL THE TIME, on lots of different systems. Sometimes it goes away after running the suggested command, sometimes it doesn’t. Sometimes reinstalling ipywidgets helps, sometimes it doesn’t. Sometimes it means the widgets aren’t working, sometimes it doesn’t. Sometimes I manage to get it to go away somehow, but then it comes back the next time anything is upgraded. This message and the associated machinery is really a big pain when using ipywidgets. 😦

4reactions
jasongroutcommented, Apr 27, 2017

This issue is fixed in the upcoming 7.0 release. I hope to have a beta out by the end of the week.

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 >
Again: Widget Javascript not detected
I keep getting the infamous “Widget Javascript not detected. It may not be installed or enabled properly.” In the past, I have spent...
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