Server change data in columndatasource but selected indices not reset

In my server app I set the datasource to new data, but the selected indices are not reset.

How can I force a columndatasource to reset selected indices from python (server-side)?

Set

source.selected.indices = []

Whenever you change your data.

Many thanks Bryan, this solves the problem.

Does this mean that I can programmatically assign a set of indices? e.g., to show data > 2*standard dev when a new data set is chosen? This won’t break bokeh internals?