x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]
# output to static HTML file
#output_file("lines.html", title="line plot example")
# create a new plot with a title and axis labels
p = figure(title="simple line example", x_axis_label='x', y_axis_label='y')
# add a line renderer with legend and line thickness
p.line(x, y, legend="Temp.", line_width=2)
p1 = figure(title="simple line example", x_axis_label='x', y_axis_label='y')
# add a line renderer with legend and line thickness
p1.line(x, y, legend="Temp.", line_width=2)
return components((p, p1))
當我運行該測試程序,我得到的誤差,散景部件API失敗,錯誤爲散景10.0與水蟒(蟒2.7)分配
return components((p, p1))
File "C:\Working\anaconda_python_27\lib\site-packages\bokeh\embed.py" in components
ref = plot_object.ref
Exception Type: AttributeError at /backtest/mavg/
Exception Value: 'tuple' object has no attribute 'ref'
當我通過字典組件
類似錯誤作爲return components({"p":p, "p1": p1})
背景虛化版本10.0蟒蛇通過安裝在你執行它不當,你的代碼對我的作品的窗口64
什麼是回報? – Leb