DatePicker not setting value
See original GitHub issueI am unable to get the DatePicker to return a value. I have tried setting this using the click, typed and arrow keys. Nothing helps.
I have put in the text example to show that this works. Here is my code.
import ipywidgets as w
text_box = w.Text(placeholder='Type Contract Name')
start_date_widget = w.DatePicker(description='Start Date')
display(text_box, start_date_widget)
start_date = start_date_widget.value
contract = text_box.value
print(contract, start_date)
'hello' None
Chrome browser, using jupyter notebook through jupyterhub, ipywidgets 7.0.
Any debugging for system info needed then please let me know. Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
jQuery datepicker does not update value properly
This event needs a date which the user selects using a jQuery datepicker. A date can only have one event. So I want...
Read more >DatePicker Doesn't Set Selected Value - OutSystems
The start Date works fine. I select a date from the picker and the value is populated into the StartDate text value and...
Read more >DatePicker set value incorrectly in Kendo UI for jQuery - Telerik
I want to set DatePicker a new value in a different function from where I define the DatePicker. Right now, I do like...
Read more >DatePicker date is not updated when value of underlying input ...
I am updating value of the underlying input field in some back events (form reset to default values), but the selected date in...
Read more >DatePicker (and presumably other pickers) not updated on ...
Create a DatePicker component; Give it focus; Change it's value while in focus; Value will be updated, but interface won't update ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This is now fixed. Thanks again @JoshuaC3 and @pbugnion!
I think I would use object.keys