jneines / MandelbrotSetExplorer

An advanced Mandelbrot Set explorer in a jupyter notebook using python, numba, bokeh, distributed and datashader.
MIT License
7 stars 1 forks source link

datashader fails #1

Open ptanga opened 5 years ago

ptanga commented 5 years ago

Hi

I dowloaded and executed locally but datashader (just installed, last version) fails:

module 'datashader.transfer_functions' has no attribute 'interpolate'

Full error transcript below.

Best regards Paolo


AttributeError Traceback (most recent call last)

in 9 p.ygrid.grid_line_color = None 10 ---> 11 InteractiveImage(p, update_image) /usr/local/lib/python3.7/site-packages/datashader/bokeh_ext.py in __init__(self, bokeh_plot, callback, delay, timeout, throttle, **kwargs) 231 232 # Initialize the image and callback --> 233 self.ds, self.renderer = self._init_image() 234 callback = self._init_callback() 235 self.p.x_range.callback = callback /usr/local/lib/python3.7/site-packages/datashader/bokeh_ext.py in _init_image(self) 268 y_range = (ymin, ymax) 269 dw, dh = xmax - xmin, ymax - ymin --> 270 image = self.callback(x_range, y_range, width, height, **self.kwargs) 271 272 ds = ColumnDataSource(data=dict(image=[image.data], x=[xmin], in update_image(x_range, y_range, w, h) 13 iterations=list(dresults) 14 ---> 15 image=tf.interpolate(xr.DataArray(np.vstack(iterations)), 16 cmap=["blue", "red", "yellow", "black"], 17 how="log") AttributeError: module 'datashader.transfer_functions' has no attribute 'interpolate'
peltBartvan commented 4 years ago

I ran into this problem as well, and found a solution here. Changing tf.interpolate(...) into tf.shade(...) fixed the problem for me.