Anaconda の最新バージョンをインストールしました。
この例から、ボケに基本的な問題があります。
from bokeh.plotting import *
f = figure()
f.line(x, y)
AttributeError: 'NoneType' object has no attribute 'line'
line(x,y) と言ってプロットすることもできますが、上記の方法が機能する場合は、より柔軟になるようです。
The example (and even the user guide) contradict the documentation for bokeh.plotting.figure()
, which explicitly says it returns None
, which explains the error you observe.
Using line()
directly therefore seems to be the way to go.
However, this holds for bokeh versions before 0.7: version 0.7 deprecated implicit plotting. This means that figure().line()
should work with bokeh 0.7+. The documentation for figure()
has apparently not yet been updated.