Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] DatePicker Displayed Value is not Updating #8934

Fredericco72 opened this issue May 28, 2019 · 0 comments


Copy link

commented May 28, 2019

My current installation:

Python version : 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)]
IPython version : 7.1.1
Tornado version : 5.1.1
Bokeh version : 1.1.0
BokehJS static path : c:\python36\lib\site-packages\bokeh\server\static
node.js version : v10.15.3
npm version : 6.4.1

My problem:

When using an script to update the DatePicker widget's value it updates the underlying value but not the displayed value.

Working example:

I'm using python.exe -m bokeh serve --dev to run the server locally


from import curdoc
from bokeh.layouts import column
from bokeh.models.widgets.buttons import Button
from bokeh.models.widgets.inputs import DatePicker
from bokeh.models.widgets import Paragraph

from datetime import date

def click_event(e):
    para1.text = str(dp.value)
    dp.value = date(2019,2,1)
    para2.text = str(dp.value)

dp = DatePicker(value=date(2019,1,10), min_date=date(2019,1,1), max_date=date(2019,2,28))

btn = Button(label='Click Me!')

para1 = Paragraph(text='')

para2 = Paragraph(text='')


curdoc().add_root(column(dp, btn, para1, para2, width=150))

Screen clipping:


You can see the initial value of 10th Jan 2019, then the value of the DatePicker updates to 1st Feb 2019 but the DatePicker display still shows 10th Jan 2019.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.