☰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

Extracting number of entries from CDS

Community Support
Maxxner
Maxxner

I’m wondering what’s the recommend way to extract the number of entries of a ColumnDataSource. Currently I’m directly extracting this information from the data dict which feels rather clunky.
Use Case: Select last or all entries.

⌁   Link to post
Bryan
Bryan

On the JS side or the Python side? On the JS side CDS have a get_length method. I thought there was similar on the Python side, but I don’t see it, so I’m either mis-remembering, or it was removed. [1] Either way, CDS columns must always all have the same length so just taking the length of one is a straightforward approach.


  1. If you are interested to add something like that then a small PR with tests would be accepted. ↩︎

⌁   Link to post

End of archived discussion · Replies are disabled