导入错误Bokeh show(),无法导入名称“ MACROS”

时间:2018-07-18 21:50:42

标签: python-3.x anaconda jupyter-notebook bokeh importerror

使用: 散景0.13.0 python-3.6.3 jupyter笔记本5.0.0 Windows 10 浏览器:Chrome

Anaconda: anaconda定制py36h363777c_0 anaconda客户端1.6.14 py36_0 anaconda-navigator 1.8.7 py36_0 anaconda-project 0.8.0 py36h8b3bf89_0

我正在运行示例教程表单bokeh:https://bokeh.pydata.org/en/0.10.0/docs/quickstart.html

td:hover .hidden-button {
opacity:1;

我明白了:

from bokeh.plotting import figure, output_file, show

# prepare some data
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)

# show the results
show(p)

在Google上找不到对我有帮助的东西:/

1 个答案:

答案 0 :(得分:0)

通过pip安装jinja软件包后,一切正常。