How to delete/add rows in Bokeh heatmap and maintain row height?

@kmt Have you tried changing height through a CustomJS callback? I have one app where I adjust the height because the number of rows can change (observe I use FactorRange).

callback = CustomJS(args = dict(plot = plot), code = """
    var new_height;
    var n_fac = plot.y_range.factors.length;
    var row_height = 40;

    new_height = row_height * n_fac;

    plot.height = new_height;
    plot.properties.height.change.emit();
""")

plot.y_range.js_on_change('factors', callback)