New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 error and no such comm target when trying to use ipywidgets #1720
Comments
This indicates that your javascript is from widgetsnbextension 2. What version of widgetsnbextension and ipywidgets do you have listed in Do you have the same error when trying from the browser's incognito mode? |
When starting a notebook, I get a 404 when trying to load the extension I had exactly the same (and other) problem(s), however activating it didn't help ("could not Validate"). This line solved it for me: jupyter nbextension install --py widgetsnbextension --user (I guess for your setup you should leave out the --user flag) And then I did the activation step jupyter nbextension enable --py widgetsnbextension |
Results from
So it looks like I have version 3 of widgetsnbextension. Force-refresh and incognito give me the same errors as before.
|
Having the same issue today. Strangely, it worked a few times, but after making various changes to my conda environment, reinstalling packages and restarting the notebook, it stopped rendering the widget and I noticed a similar 404 error to the one mentioned above:
Here is what I have installed:
|
Using @tensionhead suggestion above solved it for me. |
Thanks for the report. We switched the conda-forge package to a noarch package in conda-forge/ipywidgets-feedstock#27 - I wonder if that somehow had an effect on the files that are usually copied? I can check in a few days. |
This is likely the same issue as #1721, and would be an issue with the conda-forge widgetsnbextension package (see conda-forge/widgetsnbextension-feedstock#29 for the PR migrating that to a noarch package). |
I tried installing the 3.0.2 version of widgetsnbextension as @beenje's suggests in #1721 to no avail. Now I don't get the I also get a warning in my js console after the 404s telling me I need to install ipywidgets 4.0. Seems like a stale warning since the corresponding ipywidgets version is 7.0. EDIT: I had a look at |
It seems that #1721 is the same issue - let's move the discussion there so we have one place for trouble-shooting this issue. |
Typical opensource problemsolving - a dozen of useless comments, no working solution. At least you didn't ignore the issue altogether though. |
WIthin a day or two, we had identified and fixed the issue three years ago, as documented above and on #1721. Coming along and posting a snarky complaint three years later does not help move things forward for this issue or the community. We invite you to be uplifting and contribute to the solution, being respectful like everyone else on this issue, in the spirit of the code of conduct: https://github.com/jupyter/governance/blob/master/conduct/code_of_conduct.md#expected-behavior |
I installed ipywidgets 7.0.1 via conda into a conda root python3 environment. When starting a notebook, I get a 404 when trying to load the extension
Followed by an error from IPkernelApp when I try to create and show a widget
I shouldn't have to manually enable the extension since I'm using conda, but I tried doing
jupyter nbextension enable --py widgetsnbextension
anyway, which did not solve this.The text was updated successfully, but these errors were encountered: