Skip to content

Commit 5ccdfaa

Browse files
committed
add encode
1 parent 08cf9fc commit 5ccdfaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyciemss/visuals/plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def ipy_display(
120120
return IPython.display.Image(png_data)
121121

122122
elif format in ["svg", "SVG"]:
123-
png_data = vl_convert.vega_to_svg(schema, **kwargs)
123+
png_data = vl_convert.vega_to_svg(schema, **kwargs).encode("utf-8")
124124
return IPython.display.SVG(png_data)
125125
else:
126126
raise ValueError(f"Unhandled format requested: {format}")

0 commit comments

Comments
 (0)