From a40b9340217f2f2e55fe72249730fd40e53c3fbe Mon Sep 17 00:00:00 2001 From: "Moritz E. Beber" Date: Sun, 16 May 2021 13:27:00 +0200 Subject: [PATCH 1/2] fix: remove webdriver default argument to save Fix https://github.com/altair-viz/altair_saver/issues/72 --- altair/utils/save.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/altair/utils/save.py b/altair/utils/save.py index 94ddab6f7..b3a24f563 100644 --- a/altair/utils/save.py +++ b/altair/utils/save.py @@ -24,7 +24,7 @@ def save( vegalite_version=None, embed_options=None, json_kwds=None, - webdriver="chrome", + webdriver=None, scale_factor=1, **kwargs, ): @@ -45,21 +45,21 @@ def save( Either 'vega' or 'vegalite'. If not specified, then infer the mode from the '$schema' property of the spec, or the ``opt`` dictionary. If it's not specified in either of those places, then use 'vegalite'. - vega_version : string + vega_version : string (optional) For html output, the version of vega.js to use - vegalite_version : string + vegalite_version : string (optional) For html output, the version of vegalite.js to use - vegaembed_version : string + vegaembed_version : string (optional) For html output, the version of vegaembed.js to use - embed_options : dict + embed_options : dict (optional) The vegaEmbed options dictionary. Default is {} (See https://github.com/vega/vega-embed for details) - json_kwds : dict + json_kwds : dict (optional) Additional keyword arguments are passed to the output method associated with the specified format. - webdriver : string {'chrome' | 'firefox'} + webdriver : string {'chrome' | 'firefox'} (optional) Webdriver to use for png or svg output - scale_factor : float + scale_factor : float (optional) scale_factor to use to change size/resolution of png or svg output **kwargs : additional kwargs passed to spec_to_mimebundle. From 006ea99aeb3fb58b280ea8332054f88b9c9568e0 Mon Sep 17 00:00:00 2001 From: "Moritz E. Beber" Date: Sun, 16 May 2021 13:29:51 +0200 Subject: [PATCH 2/2] style: apply latest black formatting --- altair/sphinxext/schematable.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/altair/sphinxext/schematable.py b/altair/sphinxext/schematable.py index f7f12acc2..880e7e190 100644 --- a/altair/sphinxext/schematable.py +++ b/altair/sphinxext/schematable.py @@ -37,7 +37,7 @@ def type_description(schema): def prepare_table_header(titles, widths): - """Build docutil empty table """ + """Build docutil empty table""" ncols = len(titles) assert len(widths) == ncols @@ -60,7 +60,7 @@ def prepare_table_header(titles, widths): def add_class_def(node, classDef): - """Add reference on classDef to node """ + """Add reference on classDef to node""" ref = addnodes.pending_xref( reftarget=classDef, @@ -79,7 +79,7 @@ def add_class_def(node, classDef): def add_text(node, text): - """Add text with inline code to node """ + """Add text with inline code to node""" is_text = True for part in reCode.split(text): if part: