From 37c6ac248a614ec7b2d4768cddb21bf910d768b2 Mon Sep 17 00:00:00 2001 From: Martha Cryan Date: Tue, 12 Nov 2024 17:34:47 -0600 Subject: [PATCH 1/2] Fix FigureWidget.show --- packages/python/plotly/plotly/basewidget.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/python/plotly/plotly/basewidget.py b/packages/python/plotly/plotly/basewidget.py index f97f4ed612..5a08c6ef1b 100644 --- a/packages/python/plotly/plotly/basewidget.py +++ b/packages/python/plotly/plotly/basewidget.py @@ -142,6 +142,9 @@ def __init__( # views of this widget self._view_count = 0 + def show(self, *args, **kwargs): + return self + # Python -> JavaScript Messages # ----------------------------- def _send_relayout_msg(self, layout_data, source_view_id=None): From 30dbd63afb4e3a43cf5c018cb48c952a8ccc2059 Mon Sep 17 00:00:00 2001 From: Martha Cryan Date: Tue, 12 Nov 2024 19:12:40 -0600 Subject: [PATCH 2/2] Code formatting --- packages/python/plotly/plotly/basewidget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/plotly/plotly/basewidget.py b/packages/python/plotly/plotly/basewidget.py index 5a08c6ef1b..42fa8cdb89 100644 --- a/packages/python/plotly/plotly/basewidget.py +++ b/packages/python/plotly/plotly/basewidget.py @@ -144,7 +144,7 @@ def __init__( def show(self, *args, **kwargs): return self - + # Python -> JavaScript Messages # ----------------------------- def _send_relayout_msg(self, layout_data, source_view_id=None):