EasySci commited on
Commit
8dd8976
·
1 Parent(s): 5329d8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,7 +1,5 @@
1
  import panel as pn
2
 
3
-
4
-
5
  # Create buttons for the toggleable sidebar
6
  button1 = pn.widgets.Button(icon='home', name="Home", icon_size='1.5em', button_type = 'primary', button_style = 'outline', width = 140)
7
  button2 = pn.widgets.Button(icon='file-analytics', name='My papers', icon_size='1.5em', button_type = 'primary', button_style = 'outline', width = 140)
@@ -66,7 +64,8 @@ def update_header():
66
  header_button = pn.widgets.Button(name=button_name, button_type = 'primary', button_style = 'outline')
67
  header_button.on_click(remove_from_header) # Add callback to remove the header button
68
  header_buttons.append(header_button)
69
-
 
70
  # Update the filter list options to exclude buttons that are already in the header
71
  filter_list.options = [option for option in entered_options if option not in buttons_to_add]
72
 
 
1
  import panel as pn
2
 
 
 
3
  # Create buttons for the toggleable sidebar
4
  button1 = pn.widgets.Button(icon='home', name="Home", icon_size='1.5em', button_type = 'primary', button_style = 'outline', width = 140)
5
  button2 = pn.widgets.Button(icon='file-analytics', name='My papers', icon_size='1.5em', button_type = 'primary', button_style = 'outline', width = 140)
 
64
  header_button = pn.widgets.Button(name=button_name, button_type = 'primary', button_style = 'outline')
65
  header_button.on_click(remove_from_header) # Add callback to remove the header button
66
  header_buttons.append(header_button)
67
+
68
+ print(buttons_to_add, flush = True)
69
  # Update the filter list options to exclude buttons that are already in the header
70
  filter_list.options = [option for option in entered_options if option not in buttons_to_add]
71