holoviews: ImportError: cannot import name 'XArrayInterface'

Unable to run import holoviews.operation.datashader as hd without getting the following error

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-56-420559647be7> in <module>()
----> 1 import holoviews.operation.datashader as hd
      2 import holoviews as hv
      3 hv.extension("bokeh")
      4 opts=dict()
      5 

~/programs/BlockSci/.env/lib/python3.5/site-packages/holoviews/operation/datashader.py in <module>()
     25 from ..core import (Operation, Element, Dimension, NdOverlay,
     26                     CompositeOverlay, Dataset, Overlay)
---> 27 from ..core.data import PandasInterface, XArrayInterface
     28 from ..core.sheetcoords import BoundingBox
     29 from ..core.util import get_param_values, basestring, datetime_types, dt_to_int

ImportError: cannot import name 'XArrayInterface'

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

I already want to split the operation/datashader module into a generic resampling module for the baseclasses and perhaps some simple downsampling operations and then keep just the datashader specific operations in the current module. In the process I can improve the imports to ensure we generate better error messages.