Hi,
I’m working on a small web application that will use bokeh and bokeh-server to plot data from a set of logs that will be continually updating. I have the application working great locally, as data is added to the logs bokeh updates the plots without any need to reload the plot or page. However, I’m having trouble as I try to deploy this to a website as an embeded plot.
I have bokeh-server running with the default parmeters, so I’m trying to use apache to ProxyPass http://127.0.0.1:5006/ to a subdomain, bokeh.example.com, configured as shown below.
<VirtualHost *:80>
ServerName bokeh.example.com
ServerAlias www.bokeh.example.com
ProxyPreserveHost on
ProxyPass / http://127.0.0.1:5006/
ProxyPassReverse / http://127.0.0.1:5006/
This appears to be working, however, all I get is the top menu bar which says “Bokeh Documents for defaultuser” and has a button to logout. (Cropped screenshot here: http://imgur.com/lkpYPyW,0tCXbXc)
This is different from what I expect, which is to see several menus below that top bar with text corresponding to any previously run examples. I expect this as this is the local behavior on http://localhost:5006/bokeh/. (Screenshot here: http://imgur.com/lkpYPyW,0tCXbXc#1) So I think the errors are occuring in passing it through the proxy.
If I look at bokeh.example.com/bokeh/userinfo/ I can see the doc that exists for the line example. Then I can grab the doc id and navigate to bokeh.example.com/bokeh/doc/example-doc-id-here and it prints a ton of plain-text which has all the data to be displayed.
So, I feel close to getting this to work and feel like this is one of the last steps to getting an embeded plot served by bokeh-server. Any suggestions as to what may be going wrong would be great. If there is a better way to run the server rather than with the ProxyPass I’m all ears too. It seems the server documentation is still in the works. I’m working on a write-up for how to set this up and would be happy to contribute to some documentation when I’m done.
Thanks,
-Brian
