Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow changes to columns in bokeh CDS #2666
This PR eliminates a long-standing limitation in updating plots with elements where the dimensions change. Specifically the code that updates a CDS now checks whether the data needs to be replaced completely, which occurs in one of two conditions 1) there is a new column which does not match the length of old columns or 2) there is an old column which is not being updated which does not match the updated columns in length.
Here are some examples of what this allows (note the changes in the axis label and table column header):
Technically we could just always replace the data completely but a) that can be inefficient and b) it breaks