☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Holoview + bokeh image interpolation

Community Support
Bokeh_coder
Bokeh_coder

The following code almost does what I need

img = hv.Image(Semb.T)
img.opts(aspect='equal',width=400,height=400, cmap='jet')

The only thing missing here is to interpolate the image because it looks very coarse.
In matplotlib i could do plt.imshow(…,interpolation=‘sinc’)

How do i add such interpolation in the above holoviews/bokeh example?

Thanks

⌁   Link to post
Bryan
Bryan

The Bokeh Image object does no currently expose any of the canvas interpolation options at the user level. For most scientific/analytical plotting, interpolating an image is specifically the wrong thing to do, so there has never been any priority to make this configurable.

For now you will need to do anything like upscaling and then interpolating as pre-processing, before sending to Bokeh. You can file a GitHub Issue to suggest exposing interpolation as a configurable option but I can’t make any speculation as to when it might be looked at.

⌁   Link to post
sirspoon
sirspoon

There was a mention of this here along with Bryan saying what would need doing in some more detail…

I’m sure I saw a PR for it at some point but I looked again a couple of months later and it had gone or I’d imagined it.

⌁   Link to post

End of archived discussion · Replies are disabled