For example I have a Column that I call app which takes a long time by the bokeh layout engine to figure out how to render because it contains multiple tabs and has sizing_mode=“stretch_width”. I would like to inform the user that the page is just loading and the application has not died.
I’ve tried something along the lines of
page.clear() page.append(loading) page.append(app) page.remove(loading)
where loading is just a Str pane with the text “loading…”. It works from the point of view that the “loading…” is shown, then after some time the app shows, and then the “loading…” is removed.
But it takes just as much time to remove the “loading…” element as it did to append the app element.