harbor run -t openthoughts/tasktrove-exp-rpt-issue-issue-1200harbor download openthoughts/tasktrove-exp-rpt-issue-issue-1200Summary
Important: Do not reveal the exact patch diff in your explanation. Describe the expected behavior and implement it in code.
Before (context and current behavior)
Relevant source file (before state)
# xarray/core/formatting_html.py (fragment)
def array_section(obj):
# "unique" id to expand/collapse the section
data_id = "section-" + str(uuid.uuid4())
collapsed = ""
variable = getattr(obj, "variable", obj)
preview = escape(inline_variable_array_repr(variable, max_width=70))
data_repr = short_data_repr_html(obj)
What to implement (high level)
Files to modify/create in /app/
What to modify (guidance, not patch)
How to verify (test plan)
Notes
If you want to cross-check, you can search for array_section in the codebase to locate where the default collapsed/expanded state is determined and adjust accordingly in formatting_html.py.