I would like to take raster (say a JPG) cut it in subregions and associate each reagion to a row in a pandas dataframe, so that the image can be visualized according to some filters on the data. I see this is pretty standard using bokeh in python, but I do not find tutorial on how to prepare the raster for this. All explanation somehow use premade data such as the counties of texas example in bokeh ...
So, what should I do to my custom image to transform it into something can be used with bokeh to make an interactive map?