Skip to content

Commit

Permalink
Ensure we patch FigureWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 31, 2025
1 parent 2c8cbc0 commit d5d70c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/pane/plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _get_sources_for_trace(json, data, parent_path=''):
def _update_figure(self):
import plotly.graph_objs as go

if (self.object is None or type(self.object) not in (go.Figure, go.FigureWidget) or
if (self.object is None or not isinstance(self.object, (go.Figure, go.FigureWidget)) or
self.object is self._figure or not self.link_figure):
return

Expand Down

0 comments on commit d5d70c6

Please sign in to comment.