How to replace curdoc
问题 How can I replace the current document in a bokeh server app? I have a previous document saved as a json_string . If I do set_curdoc(Document.from_json_string(json_string)) this seems to properly change curdoc(), however the new document is not displayed in the browser. 回答1: I found a workaround, other places suggest to update the children of an existing layout instead of updating the whole curdoc(). I did that but I had to expand a bit to do that from a document saved in a json string. I had