ipywidgets: 404 GET
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?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 6
- Comments: 30 (13 by maintainers)
@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.bakis better thanrm ~/.jupyterUninstalled jupyter-contrib-nbextensions, ipywidgets, ipython_genutils, from the target conda environment. Uninstalled ipywidgets from everywhere, system, user, and sys-prefix.
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/nbextensionsand/usr/local/share/jupyter/nbextensions. Not sure the sub-directories, but a simplefind /usr -name "*.json"should reveal them.Removed my
~/.jupyteruser 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~/.ipythonfolder anymore, pretty sure that’s depricated, so that went too.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/nbconfigto 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 thejsonlists!Reinstall all the things!
conda install -c conda-forge jupyter_contrib_nbextensions ipywidgetsEnable jupyter_contrib_nbextensions things with
jupyter contrib nbextension install --sys-prefixandjupyter nbextensions_configurator install --sys-prefix(shouldn’t be needed, but doesn’t hurt)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!
I had similar problems, I fixed it with the following command:
The sys-prefix seemed to fix whatever issue the conda installer is having in getting the nbextension to properly register the Javascript.
I continue to see a similar error
404 GET /nbextensions/widgets/notebook/js/extension.js?v=20170915085159 (::1) 2.74ms referer=http://localhost:8888/notebooks/some_notebook.ipynbwhen callingjupyter notebook. The symptom was ‘Widget Javascript not detected’ (jupyter-widgets/ipywidgets#669) when calling `tqdm.tqdm_notebook’, but console output looks like this issue so did not want to open a new issue.I tried the proposed solution from that issue
jupyter nbextension enable --py --sys-prefix widgetsnbextension, which did not work. Then I removed and re-installedipywidgets 6.0(upgrading to 7.0 in the process) andwidgetsnbextension 3.0but the original problem remains.Current information:
jupyter notebook --debug
conda info
~/.jupyter cat jupyter_notebook_config.json
jupyter nbextension list
JavaScript console output