-
Notifications
You must be signed in to change notification settings - Fork 950
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
Provide better feedback for "The installed widget Javascript is the wrong version" message #662
Comments
I should add that the problem persists on an install from master of ipywidgets + notebook, even after doing a full Everything I've tested seems to work ok, but it's annoying to get that message... |
Last I saw this, it seemed like it could be a race in the check, where the check could happen before the info had propagated. I haven't been able to track it down, though. |
I just got it in the same session for a drop-list widget but not for a checkbox. Same notebook, kernel, etc, just two cells in succession, the check-box one doesn't show the warning, the drop-menu (with a I'm sure this makes sense to someone, but I find it rather disconcerting. |
Just checking, what release (or what commit if a dev install) of ipywidgets and of the notebook are you two running? |
Master all the things!!
And all these are dev installs:
|
Just noting that @ngoldbaum just reported on gitter related issues, and I'm also seeing the dreaded |
@fperez typically, this occurs when you have another version of the javascript in one of the jupyter paths. I am really frustrated with the current notebook extension system and ipywidgets is the project that has suffered the most from it. I am going to put some cycles on this this week or next week. Putting the conf.d thing on the side,, here are a few things I think should be changed:
|
Thansk @SylvainCorlay! I understand your frustration, and really appreciate your willingness to put some cycles into cleaning this up... In the meantime: can you give me a bit more of a hint to debug the issue? If we sort it out here, it will already help others... How can I see the paths it's loading JS from? We should also add to that error message specific path information about the conflict. That would make it easier for users to diagnose and debug the problem. |
You probably have some js assets in your user directory. You can try
then run the dev-install instructions |
Thanks @SylvainCorlay! I also did a "nuclear wipe" of my git repo with But once I'd wiped everything out and reran the dev-install shell script, it now works without the warning. Hopefully these instructions will already help others. I think they should probably go into the dev-install docs, though... |
BTW, incidentally, the full wipe/reinstall from master fixed the error message, but now layout is seriously messed up... If you compare to the screenshot I'd posted above with The tabs are obviously mangled... Can anyone reproduce this? It comes from the Widget Layout example notebook, last cell... If you can see this, we'll open it as a separate issue. |
@fperez I have never seen anything like this. |
Nice and thanks in advance!
I totally agree with you here...
Sound reasonable, in fact, in some conda-packaged nbextensions we are using --override by default.
I agree too, people forget about disabling and that could bring some problematic leftovers... people usually request installation and activation to be separated, but I believe in this case, one thing (uninstalltion) should cause the other (disabling) as well..
mmm... not sure about this in a composite scenario, I can see a scenario where sys-prefix installed extensions provides some "common" extensions (ie, provided by anaconda distro or a conda-forge set of extensions, etc) and user installed/enabled extensions that a user wrote and want to enable in all their notebook instances without installing the extension in every environment (maybe hundreds?).
That maybe should be warned? In the same scenario I described above, I can see a use case to disable one extension in all my envs without disabling it in every environment... |
@damianavila thanks for your feedback. I just opened jupyter/notebook#1706 to keep track on the discussions on the matter. Do you mind copying your remarks over there? PS: I slightly modified the point on "uninstalling an nbextension should also disable the nbextension". |
Well @SylvainCorlay, I can confirm that I'm getting that bizarre layout on master, after a clean install and a cache flush... The above was on Chrome, and it gets even worse on Safari: This looks like a real bug to me :) |
@fperez I nuked the node modules and re-installed and I can now reproduce your issue. It seems to be due to the update of phophor. jupyter-js-widgets tabs use phosphor tabs in master... |
For reference, further follow-up on the tabs question should happen in #733 that @SylvainCorlay just opened. This issue should focus on the JS feedback question. Which makes me think, now that @willingc opened #732 as a docs-focused action item, it seems to me this one can be closed. Am I missing something? |
Done! @SylvainCorlay |
OK, closing here, I think we're done. Feel free to reopen if there's really a reason to keep this open on top of #732. |
Can I append a dumb question, for those of us without root or even user access to the instance our notebook is running on; How do we silence this and remove it from view, if everything seems to be working OK? |
@cathalgarvey there is a precedence order for directories were the JavaScript assets are installed
user is global to all the sessions of that user but has a higher precedence. You can see what the paths for this directories with
We have made proposal for better semantics for the jupyter extension mechanism that would prevent these complications, but this will be in a future major release of jupyter... |
this will be very helpful (and eye-pleasant). |
The above is all great, if I had any control over my notebook's underlying installation. What I was wondering, instead, is if I can disable these warnings from the browser, because I have no control over the underlying install? |
I am getting this message again after doing an update, and I'm a bit stumped on how to debug it. In the past @SylvainCorlay has helped me manually, but I've also seen others stuck with the same issue. We should make that message carry some extra information that can at least point the user in the direction of how to try to resolve it...
The text was updated successfully, but these errors were encountered: