-
Notifications
You must be signed in to change notification settings - Fork 949
AttributeError: 'super' object has no attribute '_ipython_display_' #3552
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
I also have similar issues. Tried reverting to latest 7.x.x and now have issues with (!!!) |
The change that causes this: #2021 The correct migration path is to replace the method with a |
@soobidou - can you upgrade to ipywidgets 7.7.2 and make sure you have jupyterlab_widgets version 1.x (and not version 3). |
With 7.7.2, it's the same issue as my comment above My env:
In DOM inspector I see many traces of:
|
The last error is the relevant one:
Can you try in a new environment, just to make sure the downgrades actually fully applied? Someone else reported this error and reported that creating a fresh environment with ipywidgets 7.7.2 and jupyterlab_widgets 1.x fixed it. |
I did.. I do not directly install jupyterlab-widgets, it seems to be coming from the whole lab ecosystem... somewhere.. I guess I'll have to hunt down what module installs it and bug the owner to test or at least pin his stuff and not just take the LATEST which can (like yours) introduce a major breaking change overnight and screw all of our infra (I suspect the NPM jupyterlab-manager, but well, I have to reinstall line by line our CI and catch the culprit module. |
The error appears to be an incorrect dependency version in ipywidgets 7.x, which is accidentally pulling in the latest incompatible jupyterlab_widgets. I've dropped everything and spent much of today as an emergency fixing ipywidgets 7.7 and backporting the fix to 7.6 (almost released). For your issue, my guess is that the downgrade to jupyterlab_widgets version 1 didn't actually replace the javascript jupyterlab is using for some reason. You can probably verify that by doing |
(Sorry @hainm for taking over this issue with this other conversation unrelated to your issue. Is your question answered satisfactorily?) |
That's jupyterlab-manager the one installing jupyterlab_widgets throuh NPM
Now despite manually updating the module, I still have the JS errors in Sparkmagic, I don't have a solution yet. BTW SparkMagic simply set their requirements to ipywidgets>5.0.0 and the 8.x.x clearly introduced API breaking change (unlike the other majors), so they will need to at least set a 7.7.1 limit, until they manage to test your new changes. I suspect this is also the case with my other jupyterlab-manager (which sits on jupyterlab-widgets). |
yeah. It's clear to me how to fix now. Thanks @vidartf and @jasongrout. |
@soobidou - actually, that looks right - that is the version that is compatible with ipywidgets 7. Let's move this conversation over to jupyter-incubator/sparkmagic#769, which I see you've already opened about this issue, rather than continuing to take over this issue discussion. |
Dear all,
We got
AttributeError: 'super' object has no attribute '_ipython_display_'
when upgrading to ipywidgets 8nglviewer/nglview#1032 (comment)
The class inherits from
ipywidgets.DOMWidget
Any idea how to fix?
(I've read the migration note from 7 to 8 but could not find anything)
Thanks
Hai
The text was updated successfully, but these errors were encountered: