panel icon indicating copy to clipboard operation
panel copied to clipboard

No longer possible to name a None value in Select

Open hoxbro opened this issue 1 year ago • 2 comments

select = pn.widgets.Select(
    value=None,
    options={s or "All": s for s in [None, "A", "B"]},  # This will make All work as None. 
)
select

In Panel 1.4: image

In Panel 1.3.8. image

An alternative to this is using False, but in my head the None is used as not set value and in my case means all is chosen.

hoxbro avatar Mar 25 '24 14:03 hoxbro

Probably a change in bokeh?

philippjfr avatar Mar 25 '24 14:03 philippjfr

Likely https://github.com/bokeh/bokeh/pull/13497

hoxbro avatar Mar 26 '24 09:03 hoxbro