Hi Mike,
A few random comments:
in general, because Bokeh is actually a cross-langage project, adding a new model (like a new DataSource) means also adding a corresponding JavaScript implementation. So this would currently mean deploying your own custom build of BokehJS. There is currently work in flight to make the model system extensible, so that anyone can easily add their own new custom models aith JS implementations, without requiring to build BokehJS. This will land in 0.11 release.
The AjaxDataSource does have an append mode:
sources — Bokeh 3.3.2 Documentation
although do not know that it has been exercised very often by anyone yet.
If the REST api data needs to be adapted from a different format, it's also certainly possible to write a small bit of JS to make the AJAX call, and to push updates into your data source. (To be honest I thought AjaxDataSource accepted a callback that would enable this, but apparently it has not been implemented yet).
Finally note the the completely new server is being written from the ground up with data patching as a primary operation in the protocol in order to improve streaming support.
···
On Oct 26, 2015, at 6:10 AM, depalatis@gmail.com wrote:
Hi,
On Monday, October 26, 2015 at 11:35:38 AM UTC+1, Naich An wrote:
I am not sure if AjaxDataSource depends on the bokeh-server
If not , it might solve your problem
I was not aware of this, so thanks for suggesting it. I now see that while this is not particularly well-documented, there is at least an example: https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/ajax_source.py
However, this is more of a workaround than a true solution. The problem here is that to use this properly, the server needs to keep all data in memory and send it all down the wire every time a client wants an update. The model I have in mind is instead to only send new data points and have them appended to existing data. I'll look through `bokeh.models.sources` and see if I can create a custom `DataSource` that does what I want.
Mike
--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4579c0ec-d5f8-420c-a1b6-95e186896b93%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.