I have a large bokeh image consisting of about 3 million points. I want to change the colormap of the image, dynamically, through slider widgets. The “image” is really just a large matrix.
AFAIK, I have two options:
Use a bokeh server with python callbacks. This was my initial approach, however, the amount of points seems to be too large for the browser to handle, so it crashes. I’ve looked at datashader, but I am not sure if it will help me and if it works with images.
Use a customJS callback. Is this possible? Can I just pass the GlyphRenderer item to the customJS callback and change the colormap property?
Feedback on how to achieve this would be appreciated.