I’ve been vexed with the Models must be owned by only a single document" error.
The use case: create a loop in python to generate 10 plots, each of which is saved to a separate .html file. I just need each plot in its own html file, and so I expect to output 10 basic html files.
This prior discussion addresses the issue:
Models must be owned by only a single document" error appears when splitting files #8265
And this line from @Bryan is helpful: “Every session must get its own unique set of Boken objects, so the app code always must generate new instances (this is to ensure that different users are completely isolated).”
We had been working with standalone html, it appears we must make this a server app? (Even though we don’t need callbacks or any other server functions)
My questions:
- Is there an example in any of the tutorials that address this need for loop-created plots saved to separate html files?
- If we need to force a new server session, how exactly do we do that?
- Do we need to also force a new Document each iteration of the loop, and if so, how?
We’ve had a great time working with Bokeh and appreciate the support. Thanks tons!