Examples of downsampling without using the bokeh-server

I plot line charts with a high data-point count, and I’d like to downsample data and upsample when the user zoom in

The bokeh-server does this automatically (link), but I need to use a RESTful model and do it on my own

Anybody has any example of how to do this? Thanks

(I presume it should be as simple as attaching a callback to the axes being resized, but just looking for a blueprint)

The bokeh-server doesn't do downsampling automatically.

There shouldn't be an empty heading in the docs like that.

The new server re-write (which also doesn't have automatic downsampling)
is underway along with new docs. I'll try and pay attention in the
review to make sure the new docs are free from artifacts like this.

There is a bokeh-demo which calls (using REST) to a service that
provides sampled data:
https://github.com/bokeh/bokeh-demos/tree/master/stocks

···

On 10/22/15 1:07 PM, Pythonic wrote:

I plot line charts with a high data-point count, and I'd like to downsample
data and upsample when the user zoom in

The bokeh-server does this automatically (link
<Deploying the Bokeh Server — Bokeh 0.10.0 documentation),
but I need to use a RESTful model and do it on my own

Anybody has any example of how to do this? Thanks

(I presume it should be as simple as attaching a callback to the axes being
resized, but just looking for a blueprint)

Thanks Sarah, that’s precisely what I was looking for

···

On Thursday, 22 October 2015 20:58:58 UTC+1, Sarah Bird wrote:

The bokeh-server doesn’t do downsampling automatically.

There shouldn’t be an empty heading in the docs like that.

The new server re-write (which also doesn’t have automatic downsampling)

is underway along with new docs. I’ll try and pay attention in the

review to make sure the new docs are free from artifacts like this.

There is a bokeh-demo which calls (using REST) to a service that

provides sampled data:

https://github.com/bokeh/bokeh-demos/tree/master/stocks

On 10/22/15 1:07 PM, Pythonic wrote:

I plot line charts with a high data-point count, and I’d like to downsample
data and upsample when the user zoom in

The bokeh-server does this automatically (link
<http://bokeh.pydata.org/en/0.10.0/docs/user_guide/server.html#downsampling-with-server>),
but I need to use a RESTful model and do it on my own

Anybody has any example of how to do this? Thanks

(I presume it should be as simple as attaching a callback to the axes being
resized, but just looking for a blueprint)