Python Holoview-边缘检查教程不起作用

Python Holoview-边缘检查教程不起作用,python,bokeh,holoviews,Python,Bokeh,Holoviews,我正在使用holoview和bokeh扩展,并尝试hv的教程(),互动功能部分。我的环境是jupyter笔记本上的python 3.6-holoview 1.13.4 我的代码: hv.extension('bokeh', 'matplotlib') # Declare abstract edges N = 8 node_indices = np.arange(N, dtype=np.int32) source = np.zeros(N, dtype=np.int32) target = nod

我正在使用holoview和bokeh扩展,并尝试hv的教程(),互动功能部分。我的环境是jupyter笔记本上的python 3.6-holoview 1.13.4

我的代码:

hv.extension('bokeh', 'matplotlib')
# Declare abstract edges
N = 8
node_indices = np.arange(N, dtype=np.int32)
source = np.zeros(N, dtype=np.int32)
target = node_indices
simple_graph = hv.Graph(((source, target),))

def bezier(start, end, control, steps=np.linspace(0, 1, 100)):
    return (1-steps)**2*start + 2*(1-steps)*steps*control+steps**2*end

x, y = simple_graph.nodes.array([0, 1]).T

paths = []
for node_index in node_indices:
    ex, ey = x[node_index], y[node_index]
    paths.append(np.column_stack([bezier(x[0], ex, 0), bezier(y[0], ey, 0)]))
    
bezier_graph = hv.Graph(((source, target), (x, y, node_indices), paths))
bezier_graph.relabel('Edge Inspection').opts(inspection_policy='edges')
我得到了图形,但边缘检查不起作用(信息窗口不出现)