Python 使用bundle\u graph/datashader构建图形时出错

Python 使用bundle\u graph/datashader构建图形时出错,python,bokeh,holoviews,datashader,Python,Bokeh,Holoviews,Datashader,我将通过本教程学习一些关于datashader和bokeh的知识 除了几个例子外,大部分都很好。例如,此代码: %%opts Nodes (size=5) graph = layout_nodes(hv.Graph(edges_df), layout=forceatlas2_layout) forceatlas = bundle_graph(graph, split=False) pad = dict(x=(-.5, 1.3), y=(-.5, 1.3))

我将通过本教程学习一些关于datashader和bokeh的知识

除了几个例子外,大部分都很好。例如,此代码:

    %%opts Nodes (size=5)
    graph = layout_nodes(hv.Graph(edges_df), layout=forceatlas2_layout)
    forceatlas = bundle_graph(graph, split=False)
    pad = dict(x=(-.5, 1.3), y=(-.5, 1.3))
    datashade(forceatlas, width=800, height=800, cmap=fire[128:]) * forceatlas.nodes.redim.range(**pad)  
产生以下错误:

      1 graph = layout_nodes(hv.Graph(edges_df), layout=forceatlas2_layout)
----> 2 forceatlas = bundle_graph(graph, split=False)
      3 pad = dict(x=(-.5, 1.3), y=(-.5, 1.3))
      4 datashade(forceatlas, width=800, height=800, cmap=fire[128:]) * forceatlas.nodes.redim.range(**pad)
...
    493         for i in range(10):
    494             for batch in edge_segments:
--> 495                 smooth(batch, p.tension, segment_class.idx, segment_class.idy)
    496 
    497         # Flatten things

TypeError: can't unbox heterogeneous list

这听起来像是在点击,这在datashader master上是固定的,将包含在下一个版本(datashader 0.7)中。同时,您可以将Numba降级到0.38.1,这应该可以避免问题