I have a problem, and I did not find a soltion with Bokeh v 0.12.2, so I am asking this here:
I have a simple line graph:
p = figure(x_axis_type="datetime", plot_width=1000) #, responsive = True) p.line(df.date, df.close, name = 'Line') renderer = p.select(dict(name="Line")) self.ds = renderer.data_source show(p)
I am displaying that via bokeh server in a browser, and whenever a new data point is added to the line, I would like to add it to the already open display in the browser:
df = self.graphDataFrame.tail(250) ## only the last self.ds.data['x'] = df.date self.ds.data['y'] = df.close self.ds._dirty = True session = pull_session(curdoc()) session.store_objects(self.ds)
But it is not working, the screen does not change. Can you help me - what am I doing wrong?