Hi ,
I am trying to build a simple web application for visualising streaming data with flask and bokeh. I thought I would have found more documentation on this, but it is quite scarse. I hope to find some help here.
The basic code structure for my app can be found here on my github account:
Very simple, just a flask main and a HTML page, serving a bokeh figure.
I am using “bokeh.embed.components” to create the div and render the plot in the html page, I assume that at this point, in order to have the live update I need to have a javascript callback, something like js_on_change(‘stream’, callback) . How would I update my line in the javascript? is this the right way? when the callback is actually invoked? is “stream” in js_on_change the right option?
I have a flask entry point which return me a json with the new data point, how do I append to the chart?
Thank you.
