
Hello,
we are just getting started with bokeh, in our current project we want to serve bokeh content in a django project. Our docker-compose dev environment has the following components
- gunicorn for django
- bokeh serve in directory mode
- nginx to route to gunicorn and bokeh server
- postgres
We created a bokeh application that we can embed into our django content via ‘server_document’, callbacks and everything works just fine. Now we want to be able to move the components of the application more freely in the django templates: Essentially we want to specify the layout via django and not bokeh anymore. How can we serve the individual components (e.g. a map and a dropdown) while keeping the interactions working? We considered using ‘json_item’ to create individual items both for the map and the dropdowns, but how could we make sure interactions continue to work? Placement would work as we want in this case, as we can specify the div .
TL;DR: What’s the best way to embed different bokeh components into django templates, while being flexible about the placement and keeping interactions working?
Thank you,
Johannes


