import bokeh.plotting as bp
import datetime
We're in a notebook!
#bp.output_file("categorical.html", title="categorical.py example")
bp.output_notebook()
The figure
call is passed before any renderer call to glyphs that will appear on it.
bp.figure()
Aforementioned renderer.
bp.segment([datetime.date(2014,1,1)], [3], [datetime.date(2014,1,7)], [3],
line_width=20, line_color="green", title="Dot Plot", x_axis_type="datetime")
<bokeh.objects.Plot at 0x1038cfad0>
This, then, works!
bp.show()
Although I did take note that due to the JSON serialization implementation, these dates are apparently assumed to start at time a certain time offset for some reason. We should take a look into that. You're welcome to open an issue over at our GitHub.
Karan