☰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

Datetime column in ColumnDataSource in the client (browser/javascript) side

Community Supporttime-seriescustomjs
erezinman
erezinman

Hi,
I’m using a CustomJS callback to access a ColumnDataSource. The problem is that I want to treat date-time columns automatically in some way, but they appear as float64 in the browser (yeah, yeah. I know it’s converted automatically).

My question is this: is there some way of knowing that the original dtype of the column was date-time, or am I doomed to treat it as numerical?

Thanks!

⌁   Link to post
p-himik
p-himik

is there some way of knowing that the original dtype of the column was date-time

Of course - you’re in complete control of your code. Just compute the dtypes beforehand and pass it via args to CustomJS in some way that’s easily serializable, like a dict of strings to strings.

⌁   Link to post

End of archived discussion · Replies are disabled