Spaces:
Runtime error
Runtime error
anonymousauthors
commited on
Commit
•
bf204d1
1
Parent(s):
6ed8aa7
Update secretlanguage.py
Browse files- secretlanguage.py +10 -3
secretlanguage.py
CHANGED
@@ -67,14 +67,21 @@ class ReactiveTables(param.Parameterized):
|
|
67 |
def summary(self):
|
68 |
return self.data()[0].describe()
|
69 |
|
|
|
|
|
|
|
|
|
70 |
@param.depends('name_', 'record_start_index', 'record_stop_index')
|
71 |
def table_ours(self):
|
72 |
-
data = self.data()
|
73 |
-
|
|
|
74 |
min(min(self.record_stop_index + 1, self.record_start_index + 2001), len(data) + 1)].to_html(
|
75 |
classes=['example', 'panel-df']) + script,
|
76 |
sizing_mode='stretch_width')
|
77 |
-
|
|
|
|
|
78 |
@param.depends('name_', 'record_start_index', 'record_stop_index')
|
79 |
def notification(self):
|
80 |
_, datas, flag = self.data()
|
|
|
67 |
def summary(self):
|
68 |
return self.data()[0].describe()
|
69 |
|
70 |
+
# @param.depends('name_')
|
71 |
+
# def summary(self):
|
72 |
+
# return self.data()[0].describe()
|
73 |
+
|
74 |
@param.depends('name_', 'record_start_index', 'record_stop_index')
|
75 |
def table_ours(self):
|
76 |
+
data, _, flag = self.data()
|
77 |
+
if flag:
|
78 |
+
return pn.pane.HTML(data[max(0, self.record_start_index-1):
|
79 |
min(min(self.record_stop_index + 1, self.record_start_index + 2001), len(data) + 1)].to_html(
|
80 |
classes=['example', 'panel-df']) + script,
|
81 |
sizing_mode='stretch_width')
|
82 |
+
else:
|
83 |
+
return None
|
84 |
+
|
85 |
@param.depends('name_', 'record_start_index', 'record_stop_index')
|
86 |
def notification(self):
|
87 |
_, datas, flag = self.data()
|