Skip to content

Commit 93bd708

Browse files
committed
add more identifiers
1 parent 5d579a3 commit 93bd708

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

holoviews/plotting/bokeh/util.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,8 +1279,10 @@ def get_tool_id(tool: str | tools.Tool) -> tuple[type[tools.Tool], str | None]:
12791279
elif tool == 'auto_box_zoom':
12801280
return tool_type, 'auto'
12811281
else:
1282-
# TODO(Azaya): More way to identify? Take a look at merge_tools
1283-
for name in ("dimensions", "description"):
1282+
for name in ("dimensions", "tags", "name", "description", "icon"):
12841283
if identifier := getattr(tool, name, None):
1284+
# Convert lists/tuples to tuples (hashable)
1285+
if isinstance(identifier, list | tuple):
1286+
identifier = tuple(identifier)
12851287
return tool_type, identifier
12861288
return tool_type, None

0 commit comments

Comments
 (0)