Skip to content

Commit ffb571b

Browse files
authored
Merge pull request #4869 from plotly/widget-show
Fix FigureWidget.show to return FigureWidget instead of displaying Figure
2 parents a2670b0 + 30dbd63 commit ffb571b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: packages/python/plotly/plotly/basewidget.py

+3
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ def __init__(
142142
# views of this widget
143143
self._view_count = 0
144144

145+
def show(self, *args, **kwargs):
146+
return self
147+
145148
# Python -> JavaScript Messages
146149
# -----------------------------
147150
def _send_relayout_msg(self, layout_data, source_view_id=None):

0 commit comments

Comments
 (0)