Skip to content

Commit

Permalink
Fix issue for latest ipywidgets
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Sep 14, 2021
1 parent 8fb40c7 commit b5f42aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ipympl/backend_nbagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ def new_timer(self, *args, **kwargs):

def _repr_mimebundle_(self, **kwargs):
# now happens before the actual display call.
self._handle_displayed(**kwargs)
if hasattr(self, '_handle_displayed'):
self._handle_displayed(**kwargs)
plaintext = repr(self)
if len(plaintext) > 110:
plaintext = plaintext[:110] + '…'
Expand Down

0 comments on commit b5f42aa

Please sign in to comment.