Skip to content

Commit

Permalink
add encode
Browse files Browse the repository at this point in the history
  • Loading branch information
marjoleinpnnl committed Nov 13, 2024
1 parent 08cf9fc commit 5ccdfaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyciemss/visuals/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def ipy_display(
return IPython.display.Image(png_data)

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

0 comments on commit 5ccdfaa

Please sign in to comment.