From dbe799ecb99a66e85e8b211b188420898e2aa5fd Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Wed, 8 Nov 2023 12:23:44 -0500 Subject: [PATCH] vl-convert-python supports Python now (#3255) --- 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 4948904ed..ac390f02c 100644 --- a/altair/utils/mimebundle.py +++ b/altair/utils/mimebundle.py @@ -237,16 +237,10 @@ def _validate_normalize_engine( 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(