-
Notifications
You must be signed in to change notification settings - Fork 950
widget javascript not installed message appears often #1211
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
Comments
Okay, here's a possible sequence. I haven't tested this. In notebook 4.4.1 or 5.0:
Basically, it's a race condition between the widget javascript running before the user executes a cell, and an assumption from the kernel side that the ipywidgets will be able to execute a comm open before any user code runs. Before jupyter/notebook#1002, here's what I am thinking was happening in the situations where the message seemed to randomly pop up.
It always seemed fickle when the 'js not installed' error came up. I think the real problem is that in ipywidgets, we are assuming that the widget javascript will have priority access to a kernel, before user execution. I think we probably need a more robust method for doing the version check. And clearly this ipywidget check is faulty if we have multiple clients talking to the same kernel. The first client will okay its version of javascript, so the error won't show if the second client does not have the javascript installed. |
I am getting these warnings quite regularly too when using hyperspy in an Ipython console of spyder.
The same in a Jupyter Notebook:
And then in the Notebook itself:
I am using a Conda installation on an Ubuntu 16.04 system and installed hyperspy from conda-forge.
conda list (excerpt): Does this concern this issue (should be fixed in a next release or am I reading this wrong) or is this a Conda/Anaconda issue? |
I've removed that message from the next version of ipywidgets. It is a bit concerning that it was appearing in spyder - that indicates that there still might be a problem with hyperspy. Do you expect any widgets to be used in the commands that you did above? |
I have it in k3d-jupyter Widget Javascript not detected. It may not be installed or enabled properly. |
The python error message "Widget Javascript not detected. It may not be installed or enabled properly." appears a lot, and has been pretty fickle about appearing for a long time. Let's figure out why and fix the version check.
(Moved from jupyter/notebook#2087)
CC @SylvainCorlay
The text was updated successfully, but these errors were encountered: