These are backbone models, you should be able to update the selected indices with something like:
source.set('selected', [10, 27, 52])
It's possible that merely setting the selection won't trigger a re-render request (I can't recall offhand). To make sure a re-render happens, you can also trigger the 'change' event on the source:
I have a Bokeh scatter plot (embedded in a web app) in which I'd like to be able to highlight particular data indices.
I know that I can get the current selection indices using:
Bokeh.ColumnDataSource.Collection.models[0].attributes.selected
But is there a setter that I can use to update these indices, so that the corresponding points are highlighted?