From e99c54b6791be0f6949ca16a001879496176fc6e Mon Sep 17 00:00:00 2001 From: Vikram Gaonkar Date: Fri, 14 Oct 2022 17:21:31 +0200 Subject: [PATCH] Update the basewidget.py with the more recent ipywidgets8 compatible method --- packages/python/plotly/plotly/basewidget.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/python/plotly/plotly/basewidget.py b/packages/python/plotly/plotly/basewidget.py index 27cd8c7e99b..05df7babefd 100644 --- a/packages/python/plotly/plotly/basewidget.py +++ b/packages/python/plotly/plotly/basewidget.py @@ -733,12 +733,11 @@ def _handler_js2py_pointsCallback(self, change): # Display # ------- - def _ipython_display_(self): + def _repr_mimebundle_(self, include=None, exclude=None, validate=True, **kwargs): """ Handle rich display of figures in ipython contexts """ - # Override BaseFigure's display to make sure we display the widget version - widgets.DOMWidget._ipython_display_(self) + widgets.DOMWidget._repr_mimebundle_(self) # Callbacks # ---------