Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,6 +48,9 @@ def update_header():
|
|
| 48 |
header_button = pn.widgets.Button(name=button_name, width=50, sizing_mode='fixed')
|
| 49 |
header_button.on_click(remove_from_header) # Add callback to remove the header button
|
| 50 |
header_buttons.append(header_button)
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
# MultiChoice widget to display the filter options with delete buttons
|
| 53 |
filter_list = pn.widgets.MultiChoice(
|
|
|
|
| 48 |
header_button = pn.widgets.Button(name=button_name, width=50, sizing_mode='fixed')
|
| 49 |
header_button.on_click(remove_from_header) # Add callback to remove the header button
|
| 50 |
header_buttons.append(header_button)
|
| 51 |
+
|
| 52 |
+
# Update the filter list options to exclude buttons that are already in the header
|
| 53 |
+
filter_list.options = [option for option in entered_options if option not in buttons_to_add]
|
| 54 |
|
| 55 |
# MultiChoice widget to display the filter options with delete buttons
|
| 56 |
filter_list = pn.widgets.MultiChoice(
|