EasySci commited on
Commit
81c6aaf
·
1 Parent(s): 23ab556

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +12 -30
app2.py CHANGED
@@ -36,26 +36,6 @@ button3 = pn.widgets.Button(icon='settings', icon_size='1.5em', name='Settings',
36
  # Create a column layout for the buttons inside the toggleable sidebar
37
  buttons = pn.Column(button1, button2, button3 , css_classes=['hidden'])
38
 
39
- instructions = """
40
- ## Modified-gravity wormholes without exotic matter
41
- ### Tiberiu Harko, Francisco S. N. Lobo, M. K. Mak, and Sergey V. Sushkov
42
- A fundamental ingredient in wormhole physics is the flaring-out condition at the throat which,
43
- in classical general relativity, entails the violation of the null energy condition. In this work, we
44
- present the most general conditions.....
45
- """
46
-
47
- instructions2 = """
48
- ## Viability of Bouncing
49
- ology in Energy-Momentum-Squared
50
- ### Ahmed H. Barbar, Adel M. Awad, and Mohammad T. AlFiky
51
- We analyze the early-time isotropic cosmology in the so-called energy-momentum-squared gravity
52
- (EMSG). In this theory, a FORMATAÇAO term is added to the Einstein-Hilbert action, which has been
53
- shown to replace the initial singularity by a regular bounce. We show that this is not the case,
54
- and the bouncing solution obtained does.....
55
- """
56
-
57
- text = pn.pane.Markdown(instructions)
58
- text2 = pn.pane.Markdown(instructions2)
59
 
60
  # List to store the entered options
61
  loaded_list = load_categories()
@@ -102,6 +82,17 @@ def update_header():
102
  # Update the filter list options to exclude buttons that are already in the header
103
  filter_list.options = [option for option in entered_options if option not in buttons_to_add]
104
 
 
 
 
 
 
 
 
 
 
 
 
105
  # MultiChoice widget to display the filter options with delete buttons
106
  filter_list = pn.widgets.MultiChoice(
107
  name='',
@@ -114,17 +105,8 @@ filter_list = pn.widgets.MultiChoice(
114
  placeholder="Search Topics"
115
  )
116
 
117
- # Callback to remove the clicked header button
118
- def remove_from_header(event):
119
- button = event.obj # Get the clicked button
120
- if button.name in buttons_to_add:
121
- buttons_to_add.remove(button.name) # Remove from the header buttons list
122
- filter_list.options.append(button.name) # Add back to the filter list options
123
- update_header() # Update the header and filter list
124
-
125
 
126
-
127
-
128
  # Layout using Template
129
  template = pn.template.FastListTemplate(
130
  title="EasySciRead",
 
36
  # Create a column layout for the buttons inside the toggleable sidebar
37
  buttons = pn.Column(button1, button2, button3 , css_classes=['hidden'])
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  # List to store the entered options
41
  loaded_list = load_categories()
 
82
  # Update the filter list options to exclude buttons that are already in the header
83
  filter_list.options = [option for option in entered_options if option not in buttons_to_add]
84
 
85
+
86
+
87
+ # Callback to remove the clicked header button
88
+ def remove_from_header(event):
89
+ button = event.obj # Get the clicked button
90
+ if button.name in buttons_to_add:
91
+ buttons_to_add.remove(button.name) # Remove from the header buttons list
92
+ filter_list.options.append(button.name) # Add back to the filter list options
93
+ update_header() # Update the header and filter list
94
+
95
+
96
  # MultiChoice widget to display the filter options with delete buttons
97
  filter_list = pn.widgets.MultiChoice(
98
  name='',
 
105
  placeholder="Search Topics"
106
  )
107
 
 
 
 
 
 
 
 
 
108
 
109
+
 
110
  # Layout using Template
111
  template = pn.template.FastListTemplate(
112
  title="EasySciRead",