From 04838e3c0c55377c70cc0595cb4867b3bb0df657 Mon Sep 17 00:00:00 2001 From: Justin Greene Date: Sat, 6 Feb 2021 12:26:47 -0600 Subject: [PATCH] Fix for column names with whitespace in hoverdata Bokeh requires escaping column names with { } as mentioned https://github.com/bokeh/bokeh/issues/4796 . --- umap/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/plot.py b/umap/plot.py index 04a4cdf0..f9083546 100644 --- a/umap/plot.py +++ b/umap/plot.py @@ -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