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.

404 GET /nbextensions/widgets/notebook/js/extension.js?v=20170904163701

This error is driving me crazy! Uninstalled and reinstalled so many times. Definitely not being loaded via any jupyter config files. Are there any ipython config files that might be looking to load it on notebook load?

Also, there is no yaml spec, so the nbextensions_configurator from user-contrib is no help.

Any advice?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:30 (13 by maintainers)

github_iconTop GitHub Comments

11reactions
soamavencommented, Sep 27, 2017

@ahmadia Yes, thanks, I just came here to post a similar solution!

For anyone who may come after me. I am not sure if all steps are required, but they helped me narrow down the possible problem sources. Pretty sure only step 7 as above. So, perhaps just moving files to backups is a more appropriate strategy and slowly adding them back to their proper paths, e.g. mv ~/.jupyter ~/.jupyter.bak is better than rm ~/.jupyter

  1. Uninstalled jupyter-contrib-nbextensions, ipywidgets, ipython_genutils, from the target conda environment. Uninstalled ipywidgets from everywhere, system, user, and sys-prefix.

  2. Removed the jupyter_contrib_nbextensions config files ( common.json, edit.json, tree.json, terminal.json, notebook.json, jupyter_nvconver_config.json) from /usr/local/share/jupyter/nbextensions and /usr/local/share/jupyter/nbextensions. Not sure the sub-directories, but a simple find /usr -name "*.json" should reveal them.

  3. Removed my ~/.jupyter user config files in order to force use of the conda environment config files. Also made sure to target any extensions from the packages in 1 located in ~/.local/share/jupyter/nbextensions. I don’t have a ~/.ipython folder anymore, pretty sure that’s depricated, so that went too.

  4. Manually edited (because I have other extensions I wanted to keep) the conda env config files (same as in step 2) in ~/anaconda3/envs/myenv/etc/jupyter/nbconfig to delete any reference to any of the jupyter-contrib-nbextensions or ipywidgets extensions, whether enabled or not. Watch out for trailing commas at the end of the json lists!

  5. Reinstall all the things! conda install -c conda-forge jupyter_contrib_nbextensions ipywidgets

  6. Enable jupyter_contrib_nbextensions things with jupyter contrib nbextension install --sys-prefix and jupyter nbextensions_configurator install --sys-prefix (shouldn’t be needed, but doesn’t hurt)

  7. Enable ipywidgets as above with jupyter nbextension enable --py --sys-prefix widgetsnbextension. Pretty sure this was the magic step.

Thanks @jasongrout for your pleasantly persistent help!

4reactions
ahmadiacommented, Sep 26, 2017

I had similar problems, I fixed it with the following command:

jupyter nbextension enable --py --sys-prefix widgetsnbextension

The sys-prefix seemed to fix whatever issue the conda installer is having in getting the nbextension to properly register the Javascript.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error 404 not found - What does it mean & how to fix it! - IONOS
Something along the lines of '404 Not Found'. A 404 error is the standardized HTTP status code. The message is sent from the...
Read more >
HTTP 404 - Wikipedia
In computer network communications, the HTTP 404, 404 not found, 404, 404 error, page not found or file not found error message is...
Read more >
Error 404: 4 Ways to Fix It - Hostinger
Error 404 is a response code, meaning the server could not locate the requested content. Check this article to learn 4 steps to...
Read more >
404 Page Not Found Error: What It Is and How to Fix It
A 404 error is an HTTP status code that means that the page you were trying to reach on a website couldn't be...
Read more >
What Is a 404 Error? How to Deal With the Web Error
A 404 error indicates that the webpage you're trying to reach can't be found, and usually means that the page has moved or...
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