Skip to content

Commit

Permalink
Merge pull request #4869 from plotly/widget-show
Browse files Browse the repository at this point in the history
Fix FigureWidget.show to return FigureWidget instead of displaying Figure
  • Loading branch information
marthacryan authored Nov 13, 2024
2 parents a2670b0 + 30dbd63 commit ffb571b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/python/plotly/plotly/basewidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ffb571b

Please sign in to comment.