ColumnDataSource patch() and stream() with images

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)

1 Like