In fact that example never should have worked at all, since the shape of the image array is wrong:
In [2]: orig_img.shape
Out[2]: (14, 50, 1)
Image arrays have always been expected to be two-dimensional, so this “working” previously was undefined and unexpected (and most importantly: unmaintained) behavior. Singleton dimensions in NumPy arrays can removed by calling the squeeze method on the array before passing it to Bokeh.
I’m not sure what this means. When I push the button, I see a rotated (if very pixelated) image. The only change I made was here, at the very last step: