Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix widget initialization issue
Fix widgets not initializing properly when integrating with third-party libraries (such as `ipywidgets`)
  • Loading branch information
jescalada authored Mar 20, 2025
commit 91c74af6ce368406f27144d11c414a1eb7f92738
5 changes: 5 additions & 0 deletions plotly/basewidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ def __init__(
# views of this widget
self._view_count = 0

# Initialize widget layout and data for third-party widget integration
# --------------------------------------------------------------------
self._widget_layout = deepcopy(self._layout_obj._props)
self._widget_data = deepcopy(self._data)

def show(self, *args, **kwargs):
return self

Expand Down