Hi David,
Thanks for replying. The problem I’m having is that I can’t seem to run both. Here is what I’m running to start Bokeh and DJango:
bokeh serve --log-level=debug --host:localhost:5006 --host:localhost:8001
This allows me to embed Bokeh scripts just fine through DJango, but if I try this:
bokeh serve mygraph.py --log-level=debug --host:localhost:5006 --host:localhost:8001
Then I can only run the “mygraph.py” Bokeh app. The Django app then says that it failed to connect to the bokeh server.
Am I doing something wrong here?
Thanks,
Jason
···
On Friday, September 30, 2016 at 9:10:19 AM UTC-5, David Pugh wrote:
Jason,
Running apps from bokeh and embedding them in django works ok for me - I haven’t used an iframe with it, so it could be this that is causing the problem - you may need to make sure that your hosts and ports are correct on the iframe, and check if they are allowed on the bokeh server.
Can you share some examples from your code to help understand why it’s not working?
Additionally, it’s pretty easy to embed apps directly using bokeh server and django without using an iframe.
David
On Thursday, September 29, 2016 at 10:03:51 PM UTC+1, Jason Haddix wrote:
I have a django application that I mimicked from the “happiness” example (https://github.com/bokeh/bokeh-demos/tree/master/happiness), so basic charts are being served via script and autoload_server.
For more complicated visuals with animation and sever-callback I want to deploy them as bokeh apps and include as an iframe.
The problem I’m running into is running[ bokeh serve] allows my django app to run with and embedded bokeh plot, but not the bokeh app. And running [bokeh serve myapp.py] loads the bokeh app, but not django.
Is there any way to get these both running at the same time?
Thanks,
Jason