From 510bf7c9033d4fbe0897ed8e219028aabe358106 Mon Sep 17 00:00:00 2001 From: Ivan Reznikov Date: Wed, 22 Feb 2023 23:29:26 +0400 Subject: [PATCH] fix for bokeh --- hulearn/experimental/interactive.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hulearn/experimental/interactive.py b/hulearn/experimental/interactive.py index 35df5dc..fb97056 100644 --- a/hulearn/experimental/interactive.py +++ b/hulearn/experimental/interactive.py @@ -13,6 +13,7 @@ from bokeh.layouts import row from bokeh.models.widgets import Div from bokeh.io import output_notebook +from bokeh.resources import INLINE def color_dot(name, color): @@ -42,7 +43,7 @@ class InteractiveCharts: """ def __init__(self, dataf, labels, color=None): - output_notebook() + output_notebook(INLINE) self.dataf = dataf self.labels = labels self.charts = [] @@ -183,7 +184,7 @@ def __init__( ) icon_path = pathlib.Path(resource_filename("hulearn", f"images/{col}.png")) self.poly_draw[k] = PolyDrawTool( - renderers=[self.poly_patches[k]], custom_icon=icon_path + renderers=[self.poly_patches[k]], icon=icon_path ) c = self.plot.circle([], [], size=5, color="black") edit_tool = PolyEditTool(