有没有办法将外部/流数据加载到散景图中,而无需使用Bokeh服务器 . 我正在寻找一个独立的解决方案,它可以在商品虚拟主机上运行(没有python) .
我已经在网上挖掘并找到了关于AjaxDataSource的那些页面:
-
Google论坛主题:https://groups.google.com/a/continuum.io/forum/m/#!topic/bokeh/VYVAsPhS9mI
-
散景网站:http://bokeh.pydata.org/en/latest/docs/reference/models/sources.html#bokeh.models.sources.AjaxDataSource和https://bokeh.pydata.org/en/latest/docs/user_guide/data.html
我没有使用这个AjaxDataSource或Ajax的经验 . 我找到了一个包含以下内容的示例:
source = AjaxDataSource(data_url='http://localhost:5050/data',
polling_interval=100)
-
那么“http://localhost:5050/data”预计会有哪些数据(格式)?
-
正在使用Ajax唯一(或最好)的解决方案?
-
如果是,如何将外部/流数据与绘图连接?
-
或者是否有可行的解决方案来自哪里's an external JSON file (that can be updated) where Bokeh gets it'的数据?