Replies: 1 comment
-
One small update, using the built in Bokeh layouts (column, row, grid etc...), it works as expected. It feels as though the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am looking for some guidance, as searching on the internet and through the issues didn't pan out what I was looking for. I am working with Bokeh (v2.4.3), created a standalone app that uses jinja2 templates with bootstrap. This is following the directory structure project.
The bokeh server serves all the content with
bokeh serve --allow-websocket-origin=localhost:8000 myapp
, including css, js and all the layouts I set up in the template accessed fromhttp://localhost:5006
I then wanted to integrate this with django (v4+), and saw the pull_session, and serve_document functions. However, these just return a script, which when embedding into my template from django, only renders the components as defined in the bokeh
myapp/main.py
, with none of the css or any layouts before.eg.
My question is, do I need to pass the bootstrap CSS/JS and bokehJS files to the django template? Or am I approaching this wrong? Which I feel is the case. My impression was to just embed the view where the
{{ script |safe }}
would go. I image that using the bokeh layouts would work fine, but I would like to haveI feel I am thinking about is an iFrame in function, as to not have duplicate code back and forth.
Any advice or help would be greatly appreciated!
Cheers,
Beta Was this translation helpful? Give feedback.
All reactions