I was experimenting with showing a bokeh app (itself a work-in-progress) in the notebook.
following a blog post, I added a doc = app.create_document() before show(app) but I’m getting an error:
“RuntimeError: Models must be owned by only a single document, ColumnDataSource(id=‘63d3a2a0-5056-4d12-a25a-9b2bb150b0af’, …) is already in a doc”
To the difference of the post, my plot is built on ColumnDataSource(s) which are not re-instantiated in the function passed to FunctionHandler (the intent is to update the content of these sources on events).
So I’m left wondering whether that exception is expected due to the CDS not being recreated and I can’t just access the doc this way (and that’s fine I guess), or there’s some problem in my code (first experiments with Bokeh server, so that’s totally possible) that I should fix.