Skip to content

Commit

Permalink
Move to local import
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Nov 5, 2023
1 parent f85d682 commit 1965024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion altair/vegalite/v5/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1965024

Please sign in to comment.