☰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

ColumnDataSource patch() and stream() with images

Community Support
philrod
philrod

Hi,

I have a figure with an image() containing multiple parts (ie, the ‘image’ argument is a list with multiple items). I’m trying to add further images without resending the existing ones, so I tried ColumnDataSource.stream(), but my attempt (attached) doesn’t show any updates in the browser.

I do get an error in the console: “TypeError: shape is undefined”. I tracked this back and it looks like the js ColumnDataSource’s _shapes member isn’t updated on a ColumnsStreamed event (in document.ts). If I manually update _shapes, it looks like things work, but is stream() even supposed to work in this case (updating a list of images)?

Thanks,
Phil

stream_test.py (1.76 KB)

⌁   Link to post

End of archived discussion · Replies are disabled