
I have a large data set ColumnDataSource and I would like to append data to it and have the figure replot just the new data, not the entire data set.
I am doing a lot of things in Java, so I don’t have a minimal example to provide. I hope I have a few simple questions that with answers can point me in the right direction…
I think I have two approaches,
-
I believe I want to engage the
streamaction ofColumnDataSource. The documentation and other posts indicate that after callingColumnDataSource.streamwith new data one needs to refresh usingpush_document, but since I rendered the page usingcomponentsI don’t know where to get the handle to callpush_documenton the Python side. In Java I do have a handle to Bokeh class. Is there apush_documentfunction I can call from the Java side? -
Currently I update the data in the
ColumnDataSourceon the Java side, and after, I callColumnDataSource.change.emit()and that causes a replot of all the data. This has worked great for me up to now. But when the data gets so large, the replotting of all the data takes away from the user experience. Is there a way I can trigger just a replot of the new data that was just added?
2A) I see that the ColumnDataSource has a streaming object. Is there some way to use that to stream data into the ColumnDataSource? For example, adding data like ColumnDataSource.streaming.data(new stuff), and then call ColumnDataSource.streaming.emit()…


