Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions hulearn/experimental/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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 = []
Expand Down Expand Up @@ -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(
Expand Down