☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Update axis with streaming data

Community Support
jor.e.woods
jor.e.woods

When streaming data to a plot being displayed via bokeh serve, how does one go about updating the y axis? The x axis updates as new data comes in, but the y axis in my graphs end up fixed.

I found this thread from 4 years ago Redirecting to Google Groups but it doesn’t seem to fit the current methodology. (Is cursession still accessible in the library?)

Thanks,

Jordan

⌁   Link to post
Bryan
Bryan

Hi,

cursession related to the long-gone first version of the Bokeh server, it no longer exists and is no longer relevant for anything. As long as you have a default DataRange on the y-axis, then it should update automatically just like the x-axis. You can see the y-axis update automatically in this streaming app example:

  https://github.com/bokeh/bokeh/tree/master/examples/app/ohlc

Without seeing any code it's hard to speculate, except to suggest that you are probably setting a fixed range for the y-axis somehow.

Thanks,

Bryan

···

On Jun 1, 2018, at 09:04, jor.e.woods@gmail.com wrote:

When streaming data to a plot being displayed via bokeh serve, how does one go about updating the y axis? The x axis updates as new data comes in, but the y axis in my graphs end up fixed.

I found this thread from 4 years ago Redirecting to Google Groups but it doesn't seem to fit the current methodology. (Is cursession still accessible in the library?)

Thanks,
Jordan

--
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/e345c161-b784-4037-be45-e3f69f0201cc%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
jor.e.woods
jor.e.woods

Hey Bryan,

I am going to try to write a test case for this so I can open a bug report, but I found that the same code running on 0.12.15 the y axis would update with streaming data, but would not on 0.12.16.

Thanks,

Jordan

···

On Friday, June 1, 2018 at 11:10:34 AM UTC-5, Bryan Van de ven wrote:

Hi,

cursession related to the long-gone first version of the Bokeh server, it no longer exists and is no longer relevant for anything. As long as you have a default DataRange on the y-axis, then it should update automatically just like the x-axis. You can see the y-axis update automatically in this streaming app example:

    [https://github.com/bokeh/bokeh/tree/master/examples/app/ohlc](https://github.com/bokeh/bokeh/tree/master/examples/app/ohlc)

Without seeing any code it’s hard to speculate, except to suggest that you are probably setting a fixed range for the y-axis somehow.

Thanks,

Bryan

On Jun 1, 2018, at 09:04, jor.e...@gmail.com wrote:

When streaming data to a plot being displayed via bokeh serve, how does one go about updating the y axis? The x axis updates as new data comes in, but the y axis in my graphs end up fixed.

I found this thread from 4 years ago https://groups.google.com/a/continuum.io/forum/#!topic/bokeh/j_xKiwth5Xw but it doesn’t seem to fit the current methodology. (Is cursession still accessible in the library?)

Thanks,

Jordan

–
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+un...@continuum.io.

To post to this group, send email to bo...@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/e345c161-b784-4037-be45-e3f69f0201cc%40continuum.io.

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

⌁   Link to post

End of archived discussion · Replies are disabled