From 48d6a9c3bce1750f5060ec211380e82614daf090 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Tue, 7 Nov 2023 06:08:04 -0500 Subject: [PATCH] vl-convert-python supports Python now --- altair/utils/mimebundle.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/altair/utils/mimebundle.py b/altair/utils/mimebundle.py index fa36ed4b8..c6e67b178 100644 --- a/altair/utils/mimebundle.py +++ b/altair/utils/mimebundle.py @@ -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(