question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'super' object has no attribute '_ipython_display_'

See original GitHub issue

Dear all,

We got AttributeError: 'super' object has no attribute '_ipython_display_' when upgrading to ipywidgets 8 https://github.com/nglviewer/nglview/issues/1032#issue-1343627010 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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vidartfcommented, Aug 19, 2022

The change that causes this: https://github.com/jupyter-widgets/ipywidgets/pull/2021

The correct migration path is to replace the method with a _repr_mimebundle_ method. The are pretty similar, but has some nuances. If you could contribute a section to the migration guide that would help out a lot!

0reactions
jasongroutcommented, Aug 19, 2022

@jupyter-widgets/jupyterlab-manager v3.1.1 enabled OK (python, jupyterlab_widgets)

@soobidou - actually, that looks right - that is the version that is compatible with ipywidgets 7.

Let’s move this conversation over to https://github.com/jupyter-incubator/sparkmagic/issues/769, which I see you’ve already opened about this issue, rather than continuing to take over this issue discussion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exception with ipywidgets 8 - AttributeError: 'super' object has ...
Describe the bug Widget fails with AttributeError: 'super' object has no attribute '_ipython_display_' To Reproduce For example, ...
Read more >
AttributeError: 'super' object has no attribute 'display' [closed]
AttributeError : 'super' object has no attribute 'display'. error is in class Rental: ( I marked it in the code ).
Read more >
problems with py4vasp - My Community
AttributeError : 'super' object has no attribute '_ipython_display_'. I create a separate conda environment as has been suggested by you.
Read more >
'super' object has no attribute '__getattr__' - Google Groups
It means that somewhere there is data access with an attribute error and __getattr__() has not been defined. You can also do a...
Read more >
Module: display — IPython 8.7.0 documentation
Display the HTML representation of an object. Note: If raw=False and the object does not have a HTML representation, no HTML will be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found