From 1965024feb81995842f105312db6787feb2b42f5 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Sun, 5 Nov 2023 06:28:16 -0500 Subject: [PATCH] Move to local import --- altair/vegalite/v5/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/altair/vegalite/v5/api.py b/altair/vegalite/v5/api.py index ab3b92f80..a0669b25e 100644 --- a/altair/vegalite/v5/api.py +++ b/altair/vegalite/v5/api.py @@ -21,7 +21,6 @@ from .display import renderers, VEGALITE_VERSION, VEGAEMBED_VERSION, VEGA_VERSION from .theme import themes from .compiler import vegalite_compilers -from ...utils._importers import import_vl_convert from ...utils._vegafusion_data import ( using_vegafusion as _using_vegafusion, compile_with_vegafusion as _compile_with_vegafusion, @@ -1069,6 +1068,7 @@ def to_url(self, fullscreen: bool = False): fullscreen : bool If True, editor will open chart in fullscreen mode. Default False """ + from ...utils._importers import import_vl_convert vlc = import_vl_convert() if _using_vegafusion(): return vlc.vega_to_url(self.to_dict(format="vega"), fullscreen=fullscreen)