Skip to content

Commit

Permalink
vl-convert-python supports Python now
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Nov 7, 2023
1 parent e5fb1f0 commit 48d6a9c
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions altair/utils/mimebundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,10 @@ def _validate_normalize_engine(engine, format):
elif altair_saver is not None:
normalized_engine = "altairsaver"
else:
if format == "pdf":
raise ValueError(
"Saving charts in {fmt!r} format requires the altair_saver package: "
"see http://github.com/altair-viz/altair_saver/".format(fmt=format)
)
else:
raise ValueError(
"Saving charts in {fmt!r} format requires the vl-convert-python or altair_saver package: "
"see http://github.com/altair-viz/altair_saver/".format(fmt=format)
)
raise ValueError(
"Saving charts in {fmt!r} format requires the vl-convert-python or altair_saver package: "
"see http://github.com/altair-viz/altair_saver/".format(fmt=format)
)
else:
raise ValueError(
"Invalid conversion engine {engine!r}. Expected one of {valid!r}".format(
Expand Down

0 comments on commit 48d6a9c

Please sign in to comment.