Skip to content

Commit

Permalink
Ignore Bokeh UserWarning for multiple active properties in toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Aug 30, 2023
1 parent e3dee54 commit 098fa32
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions holoviews/plotting/bokeh/plot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import warnings
from itertools import groupby
from collections import defaultdict

Expand Down Expand Up @@ -984,12 +985,16 @@ def initialize_plot(self, plots=None, ranges=None):
layout_plot = Tabs(tabs=panels, sizing_mode=sizing_mode)
else:
plot_grid = filter_toolboxes(plot_grid)
layout_plot = gridplot(
children=plot_grid,
toolbar_location=self.toolbar,
merge_tools=self.merge_tools,
sizing_mode=sizing_mode
)
with warnings.catch_warnings():
warnings.filterwarnings(
"ignore", message="found multiple competing values", category=UserWarning
)
layout_plot = gridplot(
children=plot_grid,
toolbar_location=self.toolbar,
merge_tools=self.merge_tools,
sizing_mode=sizing_mode
)
if self.sync_legends:
sync_legends(layout_plot)
if bokeh3:
Expand Down

0 comments on commit 098fa32

Please sign in to comment.