ipywidgets: Missing jupyter-js-widgets/extension

Hi, when running some widgets (tried both bqplot and tqdm_notebook), I get this error message:

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”

Running the suggested enable command at the shell, I get an error message:

% jupyter nbextension enable --py --sys-prefix widgetsnbextension
 Enabling notebook extension jupyter-js-widgets/extension...
       - Validating: problems found:
         - require?  X jupyter-js-widgets/extension

I am using ipywidgets version 5.2.2

Possibly other useful information:

 % jupyter nbextension list
Known nbextensions:
  config dir: /Users/cpl29573/.jupyter/nbconfig
    notebook section
      usability/limit_output/main  enabled
      - Validating: OK
      jupyter-js-widgets/extension  enabled
      - Validating: problems found:
        - require?  X jupyter-js-widgets/extension
      usability/runtools/main  enabled
      - Validating: OK
      usability/ruler/main  enabled
      - Validating: OK
      usability/codefolding/main  enabled
      - Validating: OK
      nbextensions_configurator/config_menu/main  enabled
      - Validating: problems found:
        - require?  X nbextensions_configurator/config_menu/main
      usability/hide_input/main disabled
      canopy/training/exercise  enabled
      - Validating: OK
      usability/dragdrop/main  enabled
      - Validating: OK
      usability/scratchpad/main  enabled
      - Validating: OK
      usability/autosavetime/main  enabled
      - Validating: OK
      canopy/catalyst  enabled
      - Validating: OK
      usability/toc2/main  enabled
      - Validating: OK
      styling/table_beautifier/main  enabled
      - Validating: OK
      usability/datestamper/main  enabled
      - Validating: OK
      usability/hide_input_all/main  enabled
      - Validating: OK
      usability/comment-uncomment/main  enabled
      - Validating: OK
      usability/chrome-clipboard/main disabled
    tree section
      nbextensions_configurator/tree_tab/main  enabled
      - Validating: problems found:
        - require?  X nbextensions_configurator/tree_tab/main
  config dir: /Users/cpl29573/Library/Enthought/Canopy_64bit/User/etc/jupyter/nbconfig
    notebook section
      jupyter-js-widgets/extension  enabled
      - Validating: problems found:
        - require?  X jupyter-js-widgets/extension

I am using an Enthought Canopy installation on OSX.

This seems to be related to the closed issue #965.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 4
  • Comments: 20 (9 by maintainers)

Most upvoted comments

I run jupyter nbextension install --py widgetsnbextension --user and jupyter nbextension enable widgetsnbextension --user --py

en with no error.

This finally worked for me

jupyter nbextension install --user --py widgetsnbextension jupyter nbextension enable --user --py widgetsnbextension

In my particular situation I did not have root access, so I couldn’t use the --sys-prefix option. Also only had pip.

On Ubuntu, first shut down all jupyter-related programs. I then deleted the following three folders (you might want to make some backups though…)

  • ~/.jupyter
  • ~/.ipython
  • ~/.local/share/jupyter (here I deleted everything except for the “kernels” subfolder)

Then, I ran the following 4 instructions:

  • jupyter nbextension install --user --py widgetsnbextension
  • jupyter nbextension install --user --py bqplot
  • jupyter nbextension enable --user --py widgetsnbextension
  • jupyter nbextension enable --user --py bqplot

After all the above and starting jupyter again, things worked as expected 🙂

With pip, did you do the jupyter nbextension install step?