☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

How to get the value(s) from a CheckBoxButtonGroup

Community Support
1111
1111

To get values from a Slider, or Select we can use slider.value:

so for instance:

select = Select(title=“Make a selection”, value=“All”, options=position_options)
select .value

“All”

however when I try the same thing for CheckBoxButtonGroup I get an error:

cbbg = CheckboxButtonGroup(labels=[1,2,3,4,5], active=[0,1])
cbbg .value

AttributeError: ‘CheckboxButtonGroup’ object has no attribute ‘value’

So, how does one obtain the values from a CheckBoxButtonGroup?

⌁   Link to post
Sebastien_Roche
Sebastien_Roche

You can get cbbg.active, it’s a range() list which has the indices of the checked checkboxes

···

Le mardi 3 janvier 2017 06:31:37 UTC-5, fishy a écrit :

To get values from a Slider, or Select we can use slider.value:

so for instance:

select = Select(title=“Make a selection”, value=“All”, options=position_options)
select .value

“All”

however when I try the same thing for CheckBoxButtonGroup I get an error:

AttributeError: ‘CheckboxButtonGroup’ object has no attribute ‘value’

So, how does one obtain the values from a CheckBoxButtonGroup?

cbbg = CheckboxButtonGroup(labels=[1,2,3,4,5], active=[0,1])
cbbg .value

⌁   Link to post

End of archived discussion · Replies are disabled