p.image([source.data['image'][::-1, :] - 1], x=0, y=0, dh=[ny], dw=[nx],
    palette=Greys9, source=source)
show(p)
interact(update, idx=(0, 2))
Interactive slider to vary slice used in Bokeh image plot