File /opt/homebrew/Caskroom/mambaforge/base/envs/datashader/lib/python3.10/site-packages/datashader/core.py:219, in Canvas.points(self, source, x, y, agg, geometry)
212 raise ValueError(
213 "source must be an instance of spatialpandas.GeoDataFrame or \n"
214 "spatialpandas.dask.DaskGeoDataFrame.\n"
215 " Received value of type {typ}".format(typ=type(source)))
217 glyph = MultiPointGeometry(geometry)
--> 219 return bypixel(source, self, glyph, agg)
File /opt/homebrew/Caskroom/mambaforge/base/envs/datashader/lib/python3.10/site-packages/datashader/core.py:1258, in bypixel(source, canvas, glyph, agg, antialias)
1255 canvas.validate()
1257 # All-NaN objects (e.g. chunks of arrays with no data) are valid in Datashader
-> 1258 with np.warnings.catch_warnings():
1259 np.warnings.filterwarnings('ignore', r'All-NaN (slice|axis) encountered')
1260 return bypixel.pipeline(source, schema, canvas, glyph, agg, antialias=antialias)
File /opt/homebrew/Caskroom/mambaforge/base/envs/datashader/lib/python3.10/site-packages/numpy/init.py:320, in getattr(attr)
317 from .testing import Tester
318 return Tester
--> 320 raise AttributeError("module {!r} has no attribute "
321 "{!r}".format(name, attr))
AttributeError: module 'numpy' has no attribute 'warnings'
I use is mac M1, my conda env is,
packages in environment at /opt/homebrew/Caskroom/mambaforge/base/envs/datashader:
I am following the
3_Interactivity.ipynb
example, howerver, I got an error withAttributeError Traceback (most recent call last) Cell In[27], line 2 1 hv.output(backend="matplotlib") ----> 2 agg = ds.Canvas().points(df,'x','y') 3 hd.datashade(points) + hd.shade(hv.Image(agg)) + hv.RGB(np.array(tf.shade(agg).to_pil()), bounds=(-10,-10,10,10))
File /opt/homebrew/Caskroom/mambaforge/base/envs/datashader/lib/python3.10/site-packages/datashader/core.py:219, in Canvas.points(self, source, x, y, agg, geometry) 212 raise ValueError( 213 "source must be an instance of spatialpandas.GeoDataFrame or \n" 214 "spatialpandas.dask.DaskGeoDataFrame.\n" 215 " Received value of type {typ}".format(typ=type(source))) 217 glyph = MultiPointGeometry(geometry) --> 219 return bypixel(source, self, glyph, agg)
File /opt/homebrew/Caskroom/mambaforge/base/envs/datashader/lib/python3.10/site-packages/datashader/core.py:1258, in bypixel(source, canvas, glyph, agg, antialias) 1255 canvas.validate() 1257 # All-NaN objects (e.g. chunks of arrays with no data) are valid in Datashader -> 1258 with np.warnings.catch_warnings(): 1259 np.warnings.filterwarnings('ignore', r'All-NaN (slice|axis) encountered') 1260 return bypixel.pipeline(source, schema, canvas, glyph, agg, antialias=antialias)
File /opt/homebrew/Caskroom/mambaforge/base/envs/datashader/lib/python3.10/site-packages/numpy/init.py:320, in getattr(attr) 317 from .testing import Tester 318 return Tester --> 320 raise AttributeError("module {!r} has no attribute " 321 "{!r}".format(name, attr))
AttributeError: module 'numpy' has no attribute 'warnings'
I use is mac M1, my conda env is,