Spaces:
Running
Running
[AUTO] Fix scatter plot zoom and show_all_labels applied to main
#34
by juan-all-hands - opened
- simple_data_loader.py +1 -2
- ui_components.py +10 -16
simple_data_loader.py
CHANGED
|
@@ -245,6 +245,7 @@ class SimpleLeaderboardViewer:
|
|
| 245 |
'acp-claude': 'Claude Code',
|
| 246 |
'acp-codex': 'Codex',
|
| 247 |
'acp-gemini': 'Gemini CLI',
|
|
|
|
| 248 |
}
|
| 249 |
alt_dir = self.config_path / "alternative_agents"
|
| 250 |
if alt_dir.exists():
|
|
@@ -252,8 +253,6 @@ class SimpleLeaderboardViewer:
|
|
| 252 |
if not type_dir.is_dir():
|
| 253 |
continue
|
| 254 |
default_name = agent_type_default_name.get(type_dir.name)
|
| 255 |
-
if default_name is None:
|
| 256 |
-
continue # skip unlisted agent types (e.g. openhands_subagents)
|
| 257 |
for agent_dir in type_dir.iterdir():
|
| 258 |
if not agent_dir.is_dir():
|
| 259 |
continue
|
|
|
|
| 245 |
'acp-claude': 'Claude Code',
|
| 246 |
'acp-codex': 'Codex',
|
| 247 |
'acp-gemini': 'Gemini CLI',
|
| 248 |
+
'openhands_subagents': 'OpenHands Sub-agents',
|
| 249 |
}
|
| 250 |
alt_dir = self.config_path / "alternative_agents"
|
| 251 |
if alt_dir.exists():
|
|
|
|
| 253 |
if not type_dir.is_dir():
|
| 254 |
continue
|
| 255 |
default_name = agent_type_default_name.get(type_dir.name)
|
|
|
|
|
|
|
| 256 |
for agent_dir in type_dir.iterdir():
|
| 257 |
if not agent_dir.is_dir():
|
| 258 |
continue
|
ui_components.py
CHANGED
|
@@ -954,7 +954,7 @@ def create_leaderboard_display(
|
|
| 954 |
if not new_df.empty:
|
| 955 |
new_transformer = DataTransformer(new_df, new_tag_map)
|
| 956 |
new_df_view_full, _ = new_transformer.view(tag=category_name, use_plotly=True)
|
| 957 |
-
|
| 958 |
# Prepare both complete and all entries versions
|
| 959 |
if 'Categories Attempted' in new_df_view_full.columns:
|
| 960 |
new_df_view_complete = new_df_view_full[new_df_view_full['Categories Attempted'] == '5/5'].copy()
|
|
@@ -1014,22 +1014,16 @@ def create_leaderboard_display(
|
|
| 1014 |
|
| 1015 |
# Connect the timer to the refresh function
|
| 1016 |
if show_incomplete_checkbox is not None:
|
|
|
|
| 1017 |
if show_open_only_checkbox is not None:
|
| 1018 |
-
|
| 1019 |
-
|
| 1020 |
-
|
| 1021 |
-
|
| 1022 |
-
|
| 1023 |
-
|
| 1024 |
-
|
| 1025 |
-
|
| 1026 |
-
def _timer_refresh_no_open(show_incomplete, mark_by, show_all_labels):
|
| 1027 |
-
return check_and_refresh_data(show_incomplete, False, mark_by, show_all_labels)
|
| 1028 |
-
refresh_timer.tick(
|
| 1029 |
-
fn=_timer_refresh_no_open,
|
| 1030 |
-
inputs=[show_incomplete_checkbox, mark_by_dropdown, show_all_labels_checkbox],
|
| 1031 |
-
outputs=[dataframe_component, cost_plot_component, runtime_plot_component]
|
| 1032 |
-
)
|
| 1033 |
else:
|
| 1034 |
# If no incomplete checkbox, always show all data (but still filter by open if needed)
|
| 1035 |
def check_and_refresh_all(show_open_only=False, mark_by=MARK_BY_DEFAULT, show_all_labels=False):
|
|
|
|
| 954 |
if not new_df.empty:
|
| 955 |
new_transformer = DataTransformer(new_df, new_tag_map)
|
| 956 |
new_df_view_full, _ = new_transformer.view(tag=category_name, use_plotly=True)
|
| 957 |
+
|
| 958 |
# Prepare both complete and all entries versions
|
| 959 |
if 'Categories Attempted' in new_df_view_full.columns:
|
| 960 |
new_df_view_complete = new_df_view_full[new_df_view_full['Categories Attempted'] == '5/5'].copy()
|
|
|
|
| 1014 |
|
| 1015 |
# Connect the timer to the refresh function
|
| 1016 |
if show_incomplete_checkbox is not None:
|
| 1017 |
+
timer_inputs = [show_incomplete_checkbox]
|
| 1018 |
if show_open_only_checkbox is not None:
|
| 1019 |
+
timer_inputs.append(show_open_only_checkbox)
|
| 1020 |
+
timer_inputs.append(mark_by_dropdown) # Always include mark_by
|
| 1021 |
+
timer_inputs.append(show_all_labels_checkbox)
|
| 1022 |
+
refresh_timer.tick(
|
| 1023 |
+
fn=check_and_refresh_data,
|
| 1024 |
+
inputs=timer_inputs,
|
| 1025 |
+
outputs=[dataframe_component, cost_plot_component, runtime_plot_component]
|
| 1026 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1027 |
else:
|
| 1028 |
# If no incomplete checkbox, always show all data (but still filter by open if needed)
|
| 1029 |
def check_and_refresh_all(show_open_only=False, mark_by=MARK_BY_DEFAULT, show_all_labels=False):
|