Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xarray/core/formatting_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def summarize_variable(name, var, is_index=False, dtype=None) -> str:
variable = var.variable if hasattr(var, "variable") else var

cssclass_idx = " class='xr-has-index'" if is_index else ""
dims_str = f"({', '.join(escape(dim) for dim in var.dims)})"
dims_str = f"({', '.join(escape(str(dim)) for dim in var.dims)})"
name = escape(str(name))
dtype = dtype or escape(str(var.dtype))

Expand Down
Loading