question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DatePicker not setting value

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
jasongroutcommented, May 16, 2017

This is now fixed. Thanks again @JoshuaC3 and @pbugnion!

screen shot 2017-05-16 at 3 51 24 pm
1reaction
jasongroutcommented, May 3, 2017

I think I would use object.keys

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found