Skip to content

Conversation

maximlt
Copy link
Member

@maximlt maximlt commented May 12, 2022

Fixes #3512

The DatePicker widget has in Panel a param.CalendarDate Parameter that allows None, however in the Bokeh model the Date property isn't Nullable (which I imagine could be improved). When a Panel DatePicker is instantiated without defining value, and then value is set to a date, the Bokeh model doesn't have value yet defined, which causes the error reported in the issue. The suggested change catches the error raised by Bokeh and assumes the property is effectively going to change, since it was not set at all.

@codecov
Copy link

codecov bot commented May 12, 2022

Codecov Report

Merging #3513 (ad4aa95) into master (d3a7fc9) will decrease coverage by 0.00%.
The diff coverage is 70.00%.

@@            Coverage Diff             @@
##           master    #3513      +/-   ##
==========================================
- Coverage   82.80%   82.80%   -0.01%     
==========================================
  Files         199      199              
  Lines       27296    27305       +9     
==========================================
+ Hits        22603    22610       +7     
- Misses       4693     4695       +2     
Impacted Files Coverage Δ
panel/reactive.py 76.82% <70.00%> (-0.11%) ⬇️
panel/io/state.py 68.73% <0.00%> (+0.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3a7fc9...ad4aa95. Read the comment docs.

@philippjfr
Copy link
Member

Looks good to me.

@philippjfr philippjfr merged commit d759201 into master May 12, 2022
@philippjfr philippjfr deleted the avoid_bokeh_unsetvalueerror branch May 12, 2022 19:50
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UnsetValueError when setting the DatePicker value
2 participants