In [1]:
import bokeh.plotting as bp
import datetime

We're in a notebook!


In [2]:
#bp.output_file("categorical.html", title="categorical.py example")
bp.output_notebook()


BokehJS successfully loaded.

The figure call is passed before any renderer call to glyphs that will appear on it.


In [3]:
bp.figure()

Aforementioned renderer.


In [4]:
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")


Out[4]:
<bokeh.objects.Plot at 0x1038cfad0>

This, then, works!


In [5]:
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