Apologies for the obvious questions; however, I’m trying to create a slider that will slide through dates from January 2015 to July 2016 by months.
The Bokeh Date and RelativeDelta classes are unclear and I can’t find any good examples using them. Bokeh Date class seems to be related to Python’s datetime module.
I tried the following code:
import datetime as dt
from dateutil.relativedelta import relativedelta
crnt_date = dt.datetime.now()
yyyymm_crnt = dt.date(crnt_date.year, crnt_date.month, 01)
yyyymm_init = dt.date(2015, 01, 01)
mnth_step = relativedelta(months=1)
year_slider = DateRangeSlider(
title=“Test”,
bounds=(yyyymm_init, yyyymm_crnt),
value=(yyyymm_crnt),
step=mnth_step
)
``
The only other way I can think to do this is to have separate sliders for year and month and just deal with integers.
Thanks in advance.

