Network Graphs

Notebook conversion failed with the following traceback: An error occurred while executing the following cell: ------------------ from holoviews.operation.datashader import datashade, bundle_graph bundled = bundle_graph(fb_graph) bundled ------------------ --------------------------------------------------------------------------- ImportError Traceback (most recent call last)  in   1 from holoviews.operation.datashader import datashade, bundle_graph ----> 2 bundled = bundle_graph(fb_graph)  3 bundled ~/miniconda/envs/test-environment/lib/python3.6/site-packages/param/parameterized.py in __new__(class_, *args, **params)  2712 inst = class_.instance()  2713 inst.param._set_name(class_.__name__) -> 2714 return inst.__call__(*args,**params)  2715   2716 def __call__(self,*args,**kw): ~/build/pyviz/holoviews/holoviews/core/operation.py in __call__(self, element, **kwargs)  162 elif 'streams' not in kwargs:  163 kwargs['streams'] = self.p.streams --> 164 return element.apply(self, **kwargs)  165   166  ~/build/pyviz/holoviews/holoviews/core/accessors.py in __call__(self, function, streams, link_inputs, dynamic, **kwargs)  105 if hasattr(function, 'dynamic'):  106 inner_kwargs['dynamic'] = False --> 107 return function(self._obj, **inner_kwargs)  108 elif self._obj._deep_indexable:  109 mapped = [] ~/build/pyviz/holoviews/holoviews/core/operation.py in __call__(self, element, **kwargs)  159 for k, el in element.items()])  160 elif isinstance(element, ViewableElement): --> 161 return self._apply(element)  162 elif 'streams' not in kwargs:  163 kwargs['streams'] = self.p.streams ~/build/pyviz/holoviews/holoviews/core/operation.py in _apply(self, element, key)  119 for hook in self._preprocess_hooks:  120 kwargs.update(hook(self, element)) --> 121 ret = self._process(element, key)  122 for hook in self._postprocess_hooks:  123 ret = hook(self, ret, **kwargs) ~/build/pyviz/holoviews/holoviews/operation/datashader.py in _process(self, element, key)  1216 position_df = element.nodes.redim(**rename_nodes).dframe([0, 1, 2]).set_index(index)  1217 edges_df = element.redim(**rename_edges).dframe([0, 1]) -> 1218 paths = self._bundle(position_df, edges_df)  1219 paths = paths.rename(columns={v: k for k, v in rename_nodes.items()})  1220 paths = split_dataframe(paths) if self.p.split else [paths] ~/build/pyviz/holoviews/holoviews/operation/datashader.py in _bundle(self, position_df, edges_df)  1231   1232 def _bundle(self, position_df, edges_df): -> 1233 from datashader.bundling import hammer_bundle  1234 return hammer_bundle.__call__(self, position_df, edges_df, **self.p)  1235  ~/miniconda/envs/test-environment/lib/python3.6/site-packages/datashader/bundling.py in   18 from dask import compute, delayed  19 from pandas import DataFrame ---> 20 from skimage.filters import gaussian, sobel_h, sobel_v  21   22 import numba as nb ~/miniconda/envs/test-environment/lib/python3.6/site-packages/skimage/__init__.py in   174 dtype_limits)  175  --> 176 from .util.lookfor import lookfor  177 from .data import data_dir  178  ~/miniconda/envs/test-environment/lib/python3.6/site-packages/skimage/util/__init__.py in   6 from .apply_parallel import apply_parallel  7  ----> 8 from .arraycrop import crop  9 from ._regular_grid import regular_grid, regular_seeds  10 from .unique import unique_rows ~/miniconda/envs/test-environment/lib/python3.6/site-packages/skimage/util/arraycrop.py in   6   7 import numpy as np ----> 8 from numpy.lib.arraypad import _validate_lengths  9   10  ImportError: cannot import name '_validate_lengths' ImportError: cannot import name '_validate_lengths'

Right click to download this notebook from GitHub.