☰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

Streaming data to DataSourceColumn with Null values

Community Support
gpeetonn
gpeetonn

I’m streaming data in real-time to draw a scatter plot. The X axis is time and there could be multiple data series. Sometimes, one data series my have point for specific timestamp, while the other one wouldn’t. I noticed that “stream” method of DataSourceColumn must have data for all columns. Thus I’m passing “None” for missing point. However they are rendered as zeros.

Does Bokeh support None (null or N/A) values which will not be treated as zeros and rendered?

Thanks,

⌁   Link to post
Bryan
Bryan

Hi,

You’ll have to send NaN values, which will work best with numpy arrays for columns.

Alternatively, if the data are not actually aligned, separate CDS may be more advised.

Thanks

···

On Oct 3, 2017, at 16:26, gpeetonn@gmail.com wrote:

I’m streaming data in real-time to draw a scatter plot. The X axis is time and there could be multiple data series. Sometimes, one data series my have point for specific timestamp, while the other one wouldn’t. I noticed that “stream” method of DataSourceColumn must have data for all columns. Thus I’m passing “None” for missing point. However they are rendered as zeros.

Does Bokeh support None (null or N/A) values which will not be treated as zeros and rendered?

Thanks,

–

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/628e9956-66ef-4c88-933d-e20c50c9a44f%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