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

Support continuous_update in DatePicker #3310

Open
nickpollari opened this issue Nov 11, 2021 · 1 comment
Open

Support continuous_update in DatePicker #3310

nickpollari opened this issue Nov 11, 2021 · 1 comment

Comments

@nickpollari
Copy link

Currently the DatePicker widget will always trigger the callback as you type a date, it would be nice if this widget supported the continuous_update=False argument like other widgets do. This behavior is only problematic if the user is typing in a date (say editing the year from 2021 to 2025 using the keyboard). The problem does not surface if you set the value directly on the widget (only triggers callback once) or if the user clicks the GUI which displays the calendar and selects a date.

import ipywidgets
import datetime as dt

def cb(event):
    print(event)

# i wish this supported continuous_update but it triggers the callback every time
dp = ipywidgets.DatePicker(value=dt.datetime(2021,1,1), continuous_update=False)
dp.observe(cb, names=['value'])
@DiegoF90
Copy link

DiegoF90 commented Jul 4, 2024

Would be nice to have an update on this. Does anyone know if it will ever be implemented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants