Skip to content

Commit 04d078b

Browse files
committed
fix: cast Altair image dimensions to integers for PNG outputs
1 parent b95d26d commit 04d078b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

marimo/_output/formatters/altair_formatters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ def _format_png_mimebundle(
120120
"image/png": data_url or "",
121121
METADATA_KEY: {
122122
"image/png": {
123-
"width": metadata["width"],
124-
"height": metadata["height"],
123+
"width": int(metadata["width"]),
124+
"height": int(metadata["height"]),
125125
}
126126
},
127127
}

0 commit comments

Comments
 (0)