散景 embed_multiply 示例 returns 一个错误

Bokeh embed_multiply example returns an error

我正在尝试 运行 来自 https://github.com/bokeh/bokeh/blob/master/examples/embed/embed_multiple.py

的 embed_multiple.py 示例

这是我在 运行 脚本时看到的错误: 回溯(最近调用最后):

  File "/Users/me/test/project/Test.py", line 41, in <module>
    script, div = components(plots)
  File "/Library/Python/2.7/site-packages/bokeh/embed.py", line 56, in components
    ref = plot_object.ref
AttributeError: 'dict' object has no attribute 'ref'

有这方面的锻炼吗?

这是一个需要最新版本 Bokeh (0.9.1) 的新示例,您正在尝试 运行 使用旧版本。