Hi, I’m deploying an application that uses Param and Panel to create an interactive visualization tool. However, I’m encountering the following error when multiple users open sessions concurrently and click the Submit button on a tab:
RuntimeError: Models must be owned by only a single document, ImportedStyleSheet(id=‘p1503’, …) is already in a doc
I’ve already tried the --num-procs approach, which helps to some extent, but I’m looking for a more robust solution. Specifically, I’d like to know:
• Is there a better approach to ensure user sessions remain isolated?
• Can this issue be addressed through code modifications rather than using --num-procs approach?
Here’s the link to a minimal reproducible example of the error:
The code in sample.py makes use of class Common in common.py and class Rectangle in rectangle.py to create the dashboard.
I have used the panel serve command to launch the application from the commandline.
Any insights or suggestions would be greatly appreciated. Thanks in advance!