I'm having a little trouble implementing a webpage that uses AJAX to update the bokeh plot embedded within an html page.
See below specific file where I'm trying to implement it:
https://github.com/hhprogram/PyramidSite/blob/master/webgraphing/views/ajaxView.py
You should be able to just clone the whole webgraphing repo to your machine to run the pyramid webpage locally. You can then run the pyramid serve using pserve deveopment.ini
and then navigate to 'localhost:6543/bokehAJAX' in your browser. Looking at the javascript console it seems to be embedding the bokeh div
in my html except the div
has width of zero.
The ultimate goal is there should be a bokeh line graph figure on the page that periodically updates and adds data to the line graph. I'm not really too sure what I'm doing wrong here - any push in the right direction would be much appreciated. Note: I've tried looking at examples like: Flask + Bokeh AjaxDataSource but to no avail.