How to approach a basic streaming app

Hi Bokehfolk,

I’m interested in using Bokeh for a project I’m currently working on. The basic idea is that I have a thread running to analyze data as it comes off an MRI scanner, and I want a dashboard where I can plot that data as a timecourse and update it from moment to moment as new data arrive. In the simplest case, my plotting needs are fairly simple – say a new datapoint for each of six different timeseries arriving every 2 seconds. So it’s something that’s easily json-able (although in the future I might want to scale the data I need to get into the visualization substantially).

I’m having a little trouble figuring out where to get started with this, as the docs for the bokeh-server are a little light. Do you have any pointers to example apps that do something similar?

Thanks!

Michael

Hi Michael,

I'm doing something very similar for a RF spectrum sensor.

Take a look at "examples/plotting/server/animated.py" and
"examples/plotting/server/line_animate.py" in the Bokeh distribution.
I've built my application based on those examples. If you don't need to
send any data from your dashboard to the backend, they do exactly what
you want.

The only thing missing is how to embed plots in a custom HTML page.
That's explained in the user guide (autoload_server() function).

Best regards
Tomaž

···

On 12. 12. 2014 03:43, [email protected] wrote:

Hi Bokehfolk,

I'm interested in using Bokeh for a project I'm currently working on.
The basic idea is that I have a thread running to analyze data as it
comes off an MRI scanner, and I want a dashboard where I can plot that
data as a timecourse and update it from moment to moment as new data
arrive. In the simplest case, my plotting needs are fairly simple -- say
a new datapoint for each of six different timeseries arriving every 2
seconds. So it's something that's easily json-able (although in the
future I might want to scale the data I need to get into the
visualization substantially).

I'm having a little trouble figuring out where to get started with this,
as the docs for the bokeh-server are a little light. Do you have any
pointers to example apps that do something similar?

Thanks!
Michael

--
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 [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/bokeh/c5c1edd5-2c1f-4f20-94c0-a030268f5dcc%40continuum.io
<https://groups.google.com/a/continuum.io/d/msgid/bokeh/c5c1edd5-2c1f-4f20-94c0-a030268f5dcc%40continuum.io?utm_medium=email&utm_source=footer&gt;\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
Tomaž Šolc, research assistant
SensorLab, Jožef Stefan Institute

mail: [email protected]
blog: http://www.tablix.org/~avian/blog

Michael,

Additionally to Tomaz suggestion you will find some app examples in the app folder: https://github.com/bokeh/bokeh/tree/master/examples/app

And also an example in the embed folder: https://github.com/bokeh/bokeh/tree/master/examples/embed/slideshow

This slideshow is a flask app with render a reveal.js slideshow and show you how to embed a server-based plot, for instance, the classical wegde animation and a simple widget.

Damian

···

On Friday, December 12, 2014 3:48:01 AM UTC-3, Tomaž Šolc wrote:

Hi Michael,

I’m doing something very similar for a RF spectrum sensor.

Take a look at “examples/plotting/server/animated.py” and

“examples/plotting/server/line_animate.py” in the Bokeh distribution.

I’ve built my application based on those examples. If you don’t need to

send any data from your dashboard to the backend, they do exactly what

you want.

The only thing missing is how to embed plots in a custom HTML page.

That’s explained in the user guide (autoload_server() function).

Best regards

Tomaž

On 12. 12. 2014 03:43, [email protected] wrote:

Hi Bokehfolk,

I’m interested in using Bokeh for a project I’m currently working on.

The basic idea is that I have a thread running to analyze data as it

comes off an MRI scanner, and I want a dashboard where I can plot that

data as a timecourse and update it from moment to moment as new data

arrive. In the simplest case, my plotting needs are fairly simple – say

a new datapoint for each of six different timeseries arriving every 2

seconds. So it’s something that’s easily json-able (although in the

future I might want to scale the data I need to get into the

visualization substantially).

I’m having a little trouble figuring out where to get started with this,

as the docs for the bokeh-server are a little light. Do you have any

pointers to example apps that do something similar?

Thanks!

Michael


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 [email protected]

mailto:[email protected].

To post to this group, send email to [email protected]

mailto:[email protected].

To view this discussion on the web visit

https://groups.google.com/a/continuum.io/d/msgid/bokeh/c5c1edd5-2c1f-4f20-94c0-a030268f5dcc%40continuum.io

<https://groups.google.com/a/continuum.io/d/msgid/bokeh/c5c1edd5-2c1f-4f20-94c0-a030268f5dcc%40continuum.io?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.


Tomaž Šolc, research assistant

SensorLab, Jožef Stefan Institute

http://sensorlab.ijs.si

mail: [email protected]

blog: http://www.tablix.org/~avian/blog