bokeh.transform: cumsum import error.

Hi folks,

I’m getting an ImportError from the following line of code:

from bokeh.transform import cumsum

With the error message as follows:

ImportError: cannot import name ‘cumsum’

I have uninstalled and reinstalled Bokeh, along with restarting my Python environment (Spyder), but I’m still receiving the issue.

Any help would be greatly appreciated.

That transform is fairly new. The most likely explanation is that the version of bokeh you are installing is too old.