Skip to content

Commit

Permalink
Fix for column names with whitespace in hoverdata
Browse files Browse the repository at this point in the history
Bokeh requires escaping column names with { } as mentioned bokeh/bokeh#4796 .
  • Loading branch information
jgreene authored Feb 6, 2021
1 parent 80aed00 commit 04838e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umap/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ def interactive(
tooltip_dict = {}
for col_name in hover_data:
data[col_name] = hover_data[col_name]
tooltip_dict[col_name] = "@" + col_name
tooltip_dict[col_name] = "@{" + col_name + "}"
tooltips = list(tooltip_dict.items())
else:
tooltips = None
Expand Down

0 comments on commit 04838e3

Please sign in to comment.