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
ColumnDataSource. The documentation and other posts indicate that after calling
ColumnDataSource.streamwith new data one needs to refresh using
push_document, but since I rendered the page using
componentsI don’t know where to get the handle to call
push_documenton the Python side. In Java I do have a handle to Bokeh class. Is there a
push_documentfunction I can call from the Java side?
Currently I update the data in the
ColumnDataSourceon the Java side, and after, I call
ColumnDataSource.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