Python Bokeh服务器,简单的html页面

Python Bokeh服务器,简单的html页面,python,web-applications,server,tornado,bokeh,Python,Web Applications,Server,Tornado,Bokeh,我有一个大数据源,我需要在我的机器上计算,并与其他用户共享,大约每5分钟更新一次。更简单的解决方案是在我的机器上安装一个bokeh服务器,他们可以连接到该服务器查看数据 当我尝试运行bokeh服务器时,出现以下错误: RuntimeError: Failed to push document: AttributeError("'PropertyValueList' object has no attribute '_owners'",) 我认为这与我如何让它运行有关,我从设置服务器开始: py

我有一个大数据源,我需要在我的机器上计算,并与其他用户共享,大约每5分钟更新一次。更简单的解决方案是在我的机器上安装一个bokeh服务器,他们可以连接到该服务器查看数据

当我尝试运行bokeh服务器时,出现以下错误:

RuntimeError: Failed to push document: AttributeError("'PropertyValueList' object has no attribute '_owners'",)
我认为这与我如何让它运行有关,我从设置服务器开始:

python -m bokeh serve
然后,我从bokeh网站编译并运行以下示例:

import numpy as np
from numpy import pi

from bokeh.client import push_session
from bokeh.driving import cosine
from bokeh.plotting import figure, curdoc

x = np.linspace(0, 4*pi, 80)
y = np.sin(x)

p = figure()
r1 = p.line([0, 4*pi], [-1, 1], color="firebrick")
r2 = p.line(x, y, color="navy", line_width=4)

# open a session to keep our local document in sync with server
session = push_session(curdoc())

@cosine(w=0.03)
def update(step):
    r2.data_source.data["y"] = y * step
    r2.glyph.line_alpha = 1 - 0.8 * abs(step)

curdoc().add_periodic_callback(update, 50)

session.show() # open the document in a browser

session.loop_until_closed() # run forever