diff --git a/altair/sphinxext/altairplot.py b/altair/sphinxext/altairplot.py index aba83924d..ea0cd4c73 100644 --- a/altair/sphinxext/altairplot.py +++ b/altair/sphinxext/altairplot.py @@ -265,7 +265,7 @@ def html_visit_altair_plot(self, node): raise ValueError("Invalid chart: {0}".format(node["code"])) actions = node["links"] - # TODO: add an option to save spects to file & load from there. + # TODO: add an option to save chart specs to file & load from there. # TODO: add renderer option # Write spec to a *.vl.json file diff --git a/altair/sphinxext/schematable.py b/altair/sphinxext/schematable.py index 880e7e190..018f577c4 100644 --- a/altair/sphinxext/schematable.py +++ b/altair/sphinxext/schematable.py @@ -134,7 +134,7 @@ def build_row(item): def build_schema_tabel(items): - """Return schema table of items (iterator of prop, schema.item, requred)""" + """Return schema table of items (iterator of prop, schema.item, required)""" table, tbody = prepare_table_header( ["Property", "Type", "Description"], [10, 20, 50] ) @@ -145,7 +145,7 @@ def build_schema_tabel(items): def select_items_from_schema(schema, props=None): - """Return iterator (prop, schema.item, requred) on prop, return all in None""" + """Return iterator (prop, schema.item, required) on prop, return all in None""" properties = schema.get("properties", {}) required = schema.get("required", []) if not props: diff --git a/altair/utils/tests/test_mimebundle.py b/altair/utils/tests/test_mimebundle.py index b3f3c42c9..e38379fa1 100644 --- a/altair/utils/tests/test_mimebundle.py +++ b/altair/utils/tests/test_mimebundle.py @@ -166,7 +166,7 @@ def vega_spec(): def test_vegalite_to_vega_mimebundle(require_altair_saver, vegalite_spec, vega_spec): - # temporay fix for https://github.com/vega/vega-lite/issues/7776 + # temporary fix for https://github.com/vega/vega-lite/issues/7776 def delete_none(axes): for axis in axes: for key, value in list(axis.items()): diff --git a/doc/user_guide/display_frontends.rst b/doc/user_guide/display_frontends.rst index 4d0173e9d..e50ca8127 100644 --- a/doc/user_guide/display_frontends.rst +++ b/doc/user_guide/display_frontends.rst @@ -212,7 +212,7 @@ JSON). The type signature of a renderer is thus:: def renderer(spec: dict) -> dict: ... -Altair's default ``html`` rendeer returns a cross-platform HTML representation using +Altair's default ``html`` renderer returns a cross-platform HTML representation using the ``"text/html"`` mimetype; schematically it looks like this:: def default_renderer(spec):