You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...then you get an exception whose traceback ends with:
/miniforge/envs/flyem37/lib/python3.7/site-packages/holoviews/plotting/bokeh/graphs.py in <listcomp>(.0)
220 start, end = start.astype(np.int32), end.astype(np.int32)
221elif nodes.dtype.kind !='i':
--> 222 start = np.array([node_indices.get(x, nan_node) for x in start], dtype=np.int32)
223 end = np.array([node_indices.get(y, nan_node) for y in end], dtype=np.int32)
224 path_data =dict(start=start, end=end)
NameError: free variable 'node_indices' referenced before assignment in enclosing scope
The following code can draw a networkx graph:
But if you use an unsigned dtype, like this:
...then you get an exception whose traceback ends with:
Environment details
The text was updated successfully, but these errors were encountered: