Am I missing something here or does the DateFormatter for a DataTable widget not support hours/minutes/seconds?
Assuming this is correct, how can I display my hourly timestamps in a DataTable widget? Do I manually convert any date-columns into strings python-side before creating the ColumnDataSource?
Correct, DateFormatter only formats dates, not datetimes.
Assuming this is correct, how can I display my hourly timestamps in a DataTable widget? Do I manually convert any date-columns into strings python-side before creating the ColumnDataSource?
That's one option. It would also be possible to create a custom user extension that can format datetimes. [1] This is a slightly more advanced approach, I am happy to point out other examples and answer questions if you'd like to pursue this. There is also a new User's Guide section here:
It would probably make sense for something to eventually go into the core library too, if you happen to be interested in getting involved in OSS contributing, this would make an excellent Pull Request for someone to get started with Bokeh development, and we'd be happy to help with that as well.
Thanks,
Bryan
[1] By making Bokeh extensible it is hoped that the community can lead on important features that are simply beyond the resources of the current core team to address as quickly as might otherwise desired. My goal is to make it possible for users to publish and share their custom extensions (think: Atom plugin manager) so that their value can be magnified.
Correct, DateFormatter only formats dates, not datetimes.
Assuming this is correct, how can I display my hourly timestamps in a DataTable widget? Do I manually convert any date-columns into strings python-side before creating the ColumnDataSource?
That's one option. It would also be possible to create a custom user extension that can format datetimes. [1] This is a slightly more advanced approach, I am happy to point out other examples and answer questions if you'd like to pursue this. There is also a new User's Guide section here:
It would probably make sense for something to eventually go into the core library too, if you happen to be interested in getting involved in OSS contributing, this would make an excellent Pull Request for someone to get started with Bokeh development, and we'd be happy to help with that as well.
Thanks,
Bryan
[1] By making Bokeh extensible it is hoped that the community can lead on important features that are simply beyond the resources of the current core team to address as quickly as might otherwise desired. My goal is to make it possible for users to publish and share their custom extensions (think: Atom plugin manager) so that their value can be magnified.