☰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

Does BoxAnnotation not support Timestamps?

Community Support
NikosAlexandris
NikosAlexandris

I used the BoxAnnotation instructions from Datetime x-axis Timezone switch and I wonder why the datetime needs to be converted to a (miliseconds?) float? Why do

start_time = (pd.to_datetime('20201220T0000').timestamp())*1000

?

Shouldn’t BoxAnnotation support datetime objects? If I use regular datetime objects, I get

ValueError: failed to validate BoxAnnotation(id='p5934', ...).left: expected an element of either Null, Float or Factor(Either(String, Tuple(String, String), Tuple(String, String, String))), got (Timestamp('1944-06-06 00:00:00'),)
⌁   Link to post

End of archived discussion · Replies are disabled