Declarative visualization library for Python
This report summarizes scanner evidence for vega/altair, a Python project with 10,494 GitHub stars. SynthScan examined 72,748 lines of code across 463 source files, recording 798 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 14.4 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 369 finding(s).
Are imports declared and package/API names verified? 326 finding(s).
Are wrappers, guards, and repeated structures necessary? 365 finding(s).
Which changes need focused human review? 798 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 798 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/generate_schema_wrapper.py | 3 | CODE | |
| LOW | tools/codemod.py | 2 | CODE | |
| LOW | tools/docs_cli.py | 1 | CODE | |
| LOW | tools/sync_website.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/markup.py | 3 | CODE | |
| LOW | tools/generate_api_docs.py | 3 | CODE | |
| LOW | tools/fs.py | 3 | CODE | |
| LOW | tools/versioning.py | 23 | CODE | |
| LOW | tools/vega_expr.py | 8 | CODE | |
| LOW | tools/download_docs_artifact.py | 1 | CODE | |
| LOW | tools/datasets/datapackage.py | 8 | CODE | |
| LOW | tools/datasets/models.py | 3 | CODE | |
| LOW | tools/datasets/__init__.py | 16 | CODE | |
| LOW | tools/datasets/npm.py | 1 | CODE | |
| LOW | tools/schemapi/schemapi.py | 1 | CODE | |
| LOW | tools/schemapi/schemapi.py | 33 | CODE | |
| LOW | tools/schemapi/__init__.py | 3 | CODE | |
| LOW | tools/schemapi/__init__.py | 3 | CODE | |
| LOW | tools/schemapi/__init__.py | 4 | CODE | |
| LOW | tools/schemapi/__init__.py | 4 | CODE | |
| LOW | tools/schemapi/__init__.py | 4 | CODE | |
| LOW | tools/schemapi/__init__.py | 4 | CODE | |
| LOW | tools/schemapi/__init__.py | 10 | CODE | |
| LOW | tools/schemapi/__init__.py | 10 | CODE | |
| LOW | tools/schemapi/__init__.py | 11 | CODE | |
| LOW | tools/schemapi/__init__.py | 11 | CODE | |
| LOW | tools/schemapi/__init__.py | 12 | CODE | |
| LOW | tools/schemapi/utils.py | 3 | CODE | |
| LOW | tools/schemapi/codegen.py | 3 | CODE | |
| LOW | sphinxext/schematable.py | 1 | CODE | |
| LOW | sphinxext/utils.py | 1 | CODE | |
| LOW | sphinxext/altairgallery.py | 1 | CODE | |
| LOW | sphinxext/code_ref.py | 3 | CODE | |
| LOW | tests/test_datasets.py | 1 | CODE | |
| LOW | tests/test_magics.py | 1 | CODE | |
| LOW | tests/test_jupyter_chart.py | 12 | CODE | |
| LOW | tests/test_jupyter_chart.py | 29 | CODE | |
| LOW | tests/__init__.py | 1 | CODE | |
| LOW | tests/__init__.py | 15 | CODE | |
| LOW | tests/test_sphinxext_utils.py | 1 | CODE | |
| LOW | tests/altair_theme_test.py | 2 | CODE | |
| LOW | tests/test_examples.py | 20 | CODE | |
| LOW | tests/test_datasets_generation.py | 1 | CODE | |
| LOW | tests/expr/test_expr.py | 1 | CODE | |
| LOW | tests/utils/test_mimebundle.py | 1 | CODE | |
| LOW | tests/utils/test_core.py | 1 | CODE | |
| LOW | tests/utils/test_schemapi.py | 2 | CODE | |
| LOW | tests/utils/test_data.py | 1 | CODE | |
| LOW | tests/vegalite/v6/test_geo_interface.py | 1 | CODE | |
| LOW | tests/vegalite/v6/test_theme.py | 1 | CODE | |
| LOW | tests/vegalite/v6/test_theme.py | 20 | CODE | |
| LOW | tests/vegalite/v6/test_api.py | 3 | CODE | |
| LOW | tests/vegalite/v6/schema/test_channels.py | 1 | CODE | |
| 243 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/generate_schema_wrapper.py | 607 | def load_schema_with_shorthand_properties(fp: Path, /) -> dict[str, Any]: | STRING |
| LOW | tools/generate_schema_wrapper.py | 667 | def get_field_datum_value_defs( | STRING |
| LOW | tools/generate_schema_wrapper.py | 718 | def generate_vegalite_schema_wrapper(fp: Path, /) -> ModuleDef[str]: | STRING |
| LOW | tools/generate_schema_wrapper.py | 825 | def generate_vegalite_channel_wrappers(fp: Path, /) -> ModuleDef[list[str]]: | STRING |
| LOW | tools/generate_schema_wrapper.py | 924 | def generate_vegalite_mark_mixin(fp: Path, /, markdefs: dict[str, str]) -> str: | STRING |
| LOW | tools/generate_schema_wrapper.py | 1035 | def generate_config_typed_dicts(fp: Path, /) -> Iterator[str]: | STRING |
| LOW | tools/generate_schema_wrapper.py | 1079 | def find_theme_config_targets(info: SchemaInfo, depth: int = 0, /) -> set[SchemaInfo]: | STRING |
| LOW | tools/generate_schema_wrapper.py | 1091 | def generate_vegalite_config_mixin(fp: Path, /) -> str: | STRING |
| LOW | tools/generate_schema_wrapper.py | 1301 | def generate_encoding_artifacts( | STRING |
| LOW | tools/vega_expr.py | 747 | def is_overloaded_string_array(self) -> bool: | STRING |
| LOW | tools/download_docs_artifact.py | 45 | def latest_docbuild_run_id_for_pr(pr_number: int) -> str: | CODE |
| LOW⚡ | tools/schemapi/schemapi.py | 192 | def _get_json_schema_draft_url(schema: dict[str, Any]) -> str: | CODE |
| LOW⚡ | tools/schemapi/schemapi.py | 196 | def _prepare_references_in_schema(schema: dict[str, Any]) -> dict[str, Any]: | CODE |
| LOW | tools/schemapi/schemapi.py | 231 | def _get_referencing_registry( | CODE |
| LOW | tools/schemapi/schemapi.py | 243 | def _group_errors_by_json_path( | CODE |
| LOW | tools/schemapi/schemapi.py | 260 | def _get_leaves_of_error_tree( | CODE |
| LOW | tools/schemapi/schemapi.py | 281 | def _subset_to_most_specific_json_paths( | CODE |
| LOW | tools/schemapi/schemapi.py | 301 | def _contained_at_start_of_one_of_other_values(x: str, values: Sequence[str]) -> bool: | CODE |
| LOW | tools/schemapi/schemapi.py | 350 | def _group_errors_by_validator(errors: ValidationErrorList) -> GroupedValidationErrors: | CODE |
| LOW | tools/schemapi/schemapi.py | 389 | def _deduplicate_additional_properties_errors( | CODE |
| LOW | tools/schemapi/schemapi.py | 605 | def indent_second_line_onwards(message: str, indent: int = 4) -> str: | CODE |
| LOW | tools/schemapi/schemapi.py | 629 | def _get_message_for_errors_group( | CODE |
| LOW | tools/schemapi/schemapi.py | 645 | def _get_additional_properties_error_message( | CODE |
| LOW | tools/schemapi/schemapi.py | 666 | def _get_altair_class_for_error( | CODE |
| LOW | tools/schemapi/schemapi.py | 766 | def _get_default_error_message( | CODE |
| LOW | tools/schemapi/schemapi.py | 1347 | def _replace_parsed_shorthand( | CODE |
| LOW | sphinxext/altairgallery.py | 471 | def _heuristic_links_for_example( | CODE |
| LOW | sphinxext/altairgallery.py | 503 | def _parse_example_from_target(target: str, /) -> str | None: | CODE |
| LOW | sphinxext/altairgallery.py | 510 | def _collect_gallery_backrefs(app: Sphinx, doctree: nodes.document) -> None: | CODE |
| LOW | sphinxext/altairgallery.py | 618 | def _add_gallery_backrefs_section( | CODE |
| LOW | tests/test_vega_expr.py | 4 | def test_split_signature_tokens_handles_embedded_open_bracket() -> None: | CODE |
| LOW⚡ | tests/test_datasets.py | 128 | def is_geopandas_backed_pandas(loader: Loader[Any, Any], /) -> bool: | CODE |
| LOW⚡ | tests/test_datasets.py | 619 | def test_no_remote_connection(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_datasets.py | 332 | def test_reader_missing_dependencies() -> None: | CODE |
| LOW | tests/test_datasets.py | 357 | def test_reader_missing_implementation() -> None: | CODE |
| LOW | tests/test_datasets.py | 441 | def test_reader_cache_exhaustive( | CODE |
| LOW | tests/test_datasets.py | 498 | def test_reader_cache_disable(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_datasets.py | 670 | def test_polars_date_read_json_roundtrip( | CODE |
| LOW | tests/test_datasets.py | 783 | def test_nonexistent_dataset_attribute(self): | CODE |
| LOW | tests/test_transformed_data.py | 84 | def test_primitive_chart_examples(filename, rows, cols, to_reconstruct): | CODE |
| LOW | tests/test_transformed_data.py | 142 | def test_compound_chart_examples(filename, all_rows, all_cols, to_reconstruct): | CODE |
| LOW | tests/test_transformed_data.py | 169 | def test_transformed_data_exclude(to_reconstruct): | CODE |
| LOW⚡ | tests/test_magics.py | 58 | def test_vegalite_magic_data_included(ipshell, vl_spec) -> None: | CODE |
| LOW⚡ | tests/test_magics.py | 65 | def test_vegalite_magic_json_flag(ipshell, vl_spec) -> None: | CODE |
| LOW⚡ | tests/test_magics.py | 72 | def test_vegalite_magic_pandas_data(ipshell, vl_spec) -> None: | CODE |
| LOW | tests/test_jupyter_chart.py | 51 | def test_jupyter_chart_without_anywidget() -> None: | CODE |
| LOW | tests/test_jupyter_chart.py | 61 | def test_chart_with_no_interactivity(transformer): | CODE |
| LOW | tests/test_jupyter_chart.py | 87 | def test_interval_selection_example(transformer): | CODE |
| LOW | tests/test_jupyter_chart.py | 155 | def test_index_selection_example(transformer): | CODE |
| LOW | tests/test_toplevel.py | 5 | def test_completeness_of__all__(): | CODE |
| LOW | tests/test_sphinxext_utils.py | 11 | def test_get_docstring_and_rest(tmp_path: Path) -> None: | CODE |
| LOW⚡ | tests/test_examples.py | 37 | def test_render_examples_to_chart(source: Any, filename: str) -> None: | CODE |
| LOW⚡ | tests/test_examples.py | 54 | def test_from_and_to_json_roundtrip(source: Any, filename: str) -> None: | CODE |
| LOW | tests/test_examples.py | 85 | def test_render_examples_to_png(source: Any, filename: str) -> None: | CODE |
| LOW | tests/test_datasets_generation.py | 22 | def test_datapackage_resource_paths( | CODE |
| LOW | tests/examples_methods_syntax/deviation_ellipses.py | 53 | def grouped_confidence_regions(df, col_x, col_y, col_group): | CODE |
| LOW | tests/examples_methods_syntax/__init__.py | 9 | def iter_examples_methods_syntax(): | CODE |
| LOW | tests/expr/test_expr.py | 128 | def test_expr_consts_immutable(constname: str): | CODE |
| LOW⚡ | tests/expr/test_expr.py | 180 | def test_expression_function_expr(): | CODE |
| LOW⚡ | tests/expr/test_expr.py | 187 | def test_expression_function_string(): | CODE |
| 187 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_datasets.py | 135 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_datasets.py | 137 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_datasets.py | 610 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_datasets.py | 612 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 36 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 38 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 95 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 97 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 246 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 248 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 291 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 293 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 384 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 386 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 523 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 525 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 580 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 582 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 654 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 656 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 739 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 741 | # ============================================================================= | COMMENT |
| MEDIUM | altair/utils/compiler.py | 6 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/compiler.py | 8 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/display.py | 18 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/display.py | 20 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/display.py | 119 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/display.py | 121 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/data.py | 76 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/data.py | 86 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/data.py | 106 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/data.py | 347 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/data.py | 349 | # ============================================================================== | COMMENT |
| MEDIUM | altair/vegalite/v6/display.py | 26 | # ============================================================================== | COMMENT |
| MEDIUM | altair/vegalite/v6/display.py | 28 | # ============================================================================== | COMMENT |
| MEDIUM⚡ | altair/vegalite/v6/api.py | 361 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | altair/vegalite/v6/api.py | 365 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | altair/vegalite/v6/api.py | 372 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 213 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 309 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 578 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 1397 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 2010 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | altair/vegalite/v6/data.py | 15 | # ============================================================================== | COMMENT |
| MEDIUM | altair/vegalite/v6/data.py | 17 | # ============================================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/schemapi/schemapi.py | 171 | # (Gradient|string|null)>' would be a valid $ref in a Vega-Lite schema but | COMMENT |
| HIGH | tests/examples_methods_syntax/wheat_wages.py | 18 | offset="((!datum.commonwealth && datum.index % 2) ? -1: 1) * 2 + 95", | CODE |
| HIGH | tests/examples_methods_syntax/wheat_wages.py | 19 | off2="((!datum.commonwealth && datum.index % 2) ? -1: 1) + 95", | CODE |
| HIGH | tests/expr/test_expr.py | 137 | assert repr(datum.xxx == None) == "(datum.xxx === null)" # noqa: E711 | CODE |
| HIGH | tests/utils/test_utils.py | 87 | assert df.equals(df2) | CODE |
| HIGH | tests/utils/test_data.py | 118 | assert output.equals(data) | CODE |
| HIGH | tests/utils/test_data.py | 163 | assert output.equals(data) | CODE |
| HIGH | …s_arguments_syntax/interactive_reorder_stacked_bars.py | 23 | site_order=f"if({selection.name}.site && indexof({selection.name}.site, datum.site) !== -1, 0, 1)" | CODE |
| HIGH | tests/examples_arguments_syntax/wheat_wages.py | 18 | offset="((!datum.commonwealth && datum.index % 2) ? -1: 1) * 2 + 95", | CODE |
| HIGH | tests/examples_arguments_syntax/wheat_wages.py | 19 | off2="((!datum.commonwealth && datum.index % 2) ? -1: 1) + 95", | CODE |
| HIGH | altair/expr/__init__.py | 2028 | If there is no container element, returns ``[undefined, undefined]``. | STRING |
| HIGH | altair/expr/__init__.py | 2044 | """Returns the current window size (``[window.innerWidth, window.innerHeight]``) or ``[undefined, undefined]`` i | STRING |
| HIGH | altair/expr/funcs.py | 157 | "containerSize": r"Returns the current CSS box size (`[el.clientWidth, el.clientHeight]`) of the parent DOM element | CODE |
| HIGH | altair/expr/funcs.py | 159 | "windowSize": r"Returns the current window size (`[window.innerWidth, window.innerHeight]`) or `[undefined, undefine | CODE |
| HIGH | altair/utils/schemapi.py | 173 | # (Gradient|string|null)>' would be a valid $ref in a Vega-Lite schema but | COMMENT |
| HIGH | altair/utils/html.py | 286 | if (rows && rows.length && looksLikeFips(rows, 'id')) { | STRING |
| HIGH | altair/utils/core.py | 457 | # Also convert NaN/inf values to null, as they are not JSON serializable | COMMENT |
| HIGH | altair/utils/_dfi_types.py | 79 | - Data types not included: complex, Arrow-style null, binary, decimal, | STRING |
| HIGH⚡ | altair/vegalite/v6/api.py | 3724 | following the current data object. The default value is ``[null, 0]``, indicating | STRING |
| HIGH⚡ | altair/vegalite/v6/api.py | 3727 | and five objects following the current object. Finally, ``[null, null]`` indicates | STRING |
| HIGH⚡ | altair/vegalite/v6/api.py | 3733 | **Default value:** : ``[null, 0]`` (includes the current object and all preceding | STRING |
| HIGH | altair/vegalite/v6/api.py | 3012 | **Default value:** : ``[null, null]`` indicating that the window includes all | STRING |
| HIGH | altair/vegalite/v6/schema/_config.py | 1705 | Sets the minimum slider increment. If undefined, the step size will be automatically | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tools/schemapi/schemapi.py | 197 | # Create a copy so that $ref is not modified in the original schema in case | COMMENT |
| MEDIUM | tools/schemapi/schemapi.py | 1413 | # Create a mapping of a schema hash to a list of matching classes | COMMENT |
| MEDIUM | …/examples_methods_syntax/multiline_tooltip_standard.py | 21 | # Create a selection that chooses the nearest point & selects based on x-value | COMMENT |
| MEDIUM | tests/examples_methods_syntax/select_detail.py | 30 | # Create a 50-element time-series for each object | COMMENT |
| MEDIUM | tests/examples_methods_syntax/poly_fit_regression.py | 19 | # Define the degree of the polynomial fits | COMMENT |
| MEDIUM | tests/examples_methods_syntax/multiline_tooltip.py | 25 | # Create a selection that chooses the nearest point & selects based on x-value | COMMENT |
| MEDIUM | …xamples_methods_syntax/line_with_last_value_labeled.py | 13 | # Create a common chart object | COMMENT |
| MEDIUM | …xamples_methods_syntax/line_with_last_value_labeled.py | 33 | # Create a text label | COMMENT |
| MEDIUM | …xamples_methods_syntax/line_with_last_value_labeled.py | 36 | # Create a circle annotation | COMMENT |
| MEDIUM | tests/examples_methods_syntax/polar_bar_chart.py | 26 | # Create the circular axis lines for the number of observations | COMMENT |
| MEDIUM | tests/examples_methods_syntax/polar_bar_chart.py | 36 | # Create the straight axis lines for the time of the day | COMMENT |
| MEDIUM | …ples_methods_syntax/interactive_layered_crossfilter.py | 19 | # Define the base chart, with the common parts of the | COMMENT |
| MEDIUM | tests/vegalite/v6/test_params.py | 213 | # Define the base chart, with the common parts of the | COMMENT |
| MEDIUM⚡ | tests/vegalite/v6/test_params.py | 265 | # Create a chart and add both parameters - should raise an error | COMMENT |
| MEDIUM | …xamples_arguments_syntax/multiline_tooltip_standard.py | 21 | # Create a selection that chooses the nearest point & selects based on x-value | COMMENT |
| MEDIUM | tests/examples_arguments_syntax/select_detail.py | 30 | # Create a 50-element time-series for each object | COMMENT |
| MEDIUM | tests/examples_arguments_syntax/poly_fit_regression.py | 19 | # Define the degree of the polynomial fits | COMMENT |
| MEDIUM | tests/examples_arguments_syntax/multiline_tooltip.py | 25 | # Create a selection that chooses the nearest point & selects based on x-value | COMMENT |
| MEDIUM | …mples_arguments_syntax/line_with_last_value_labeled.py | 13 | # Create a common chart object | COMMENT |
| MEDIUM | …mples_arguments_syntax/line_with_last_value_labeled.py | 31 | # Create a text label | COMMENT |
| MEDIUM | …mples_arguments_syntax/line_with_last_value_labeled.py | 34 | # Create a circle annotation | COMMENT |
| MEDIUM | tests/examples_arguments_syntax/polar_bar_chart.py | 27 | # Create the circular axis lines for the number of observations | COMMENT |
| MEDIUM | tests/examples_arguments_syntax/polar_bar_chart.py | 37 | # Create the straight axis lines for the time of the day | COMMENT |
| MEDIUM | …es_arguments_syntax/interactive_layered_crossfilter.py | 19 | # Define the base chart, with the common parts of the | COMMENT |
| MEDIUM⚡ | altair/utils/schemapi.py | 199 | # Create a copy so that $ref is not modified in the original schema in case | COMMENT |
| MEDIUM | altair/utils/schemapi.py | 1415 | # Create a mapping of a schema hash to a list of matching classes | COMMENT |
| MEDIUM | altair/utils/_transformed_data.py | 160 | # This function is only used internally and so we accept this inconsistency for now. | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 390 | # Create a hash data structure with parameter information | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 399 | # Create a copy of param_dict without the name field for hash computation | COMMENT |
| MEDIUM | doc/conf.py | 6 | # This file is execfile()d with the current directory set to its | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/schemapi/schemapi.py | 0 | construct a ``chart`` from a dictionary representation. parameters ---------- dct : dictionary the dict from which to co | STRING |
| HIGH | altair/utils/schemapi.py | 0 | construct a ``chart`` from a dictionary representation. parameters ---------- dct : dictionary the dict from which to co | STRING |
| HIGH | altair/vegalite/v6/api.py | 0 | construct a ``chart`` from a dictionary representation. parameters ---------- dct : dictionary the dict from which to co | STRING |
| HIGH | …xamples_methods_syntax/beckers_barley_wrapped_facet.py | 0 | becker's barley faceted plot ---------------------------- the example demonstrates the faceted charts created by richard | STRING |
| HIGH | tests/examples_methods_syntax/beckers_barley_facet.py | 0 | becker's barley faceted plot ---------------------------- the example demonstrates the faceted charts created by richard | STRING |
| HIGH | …mples_arguments_syntax/beckers_barley_wrapped_facet.py | 0 | becker's barley faceted plot ---------------------------- the example demonstrates the faceted charts created by richard | STRING |
| HIGH | tests/examples_arguments_syntax/beckers_barley_facet.py | 0 | becker's barley faceted plot ---------------------------- the example demonstrates the faceted charts created by richard | STRING |
| HIGH | …xamples_methods_syntax/normalized_stacked_bar_chart.py | 0 | stacked bar chart ----------------- this is an example of a stacked bar chart using data which contains crop yields over | STRING |
| HIGH | …mples_arguments_syntax/normalized_stacked_bar_chart.py | 0 | stacked bar chart ----------------- this is an example of a stacked bar chart using data which contains crop yields over | STRING |
| HIGH | …mples_arguments_syntax/horizontal_stacked_bar_chart.py | 0 | stacked bar chart ----------------- this is an example of a stacked bar chart using data which contains crop yields over | STRING |
| HIGH | tests/examples_arguments_syntax/stacked_bar_chart.py | 0 | stacked bar chart ----------------- this is an example of a stacked bar chart using data which contains crop yields over | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/generate_schema_wrapper.py | 607 | CODE | |
| LOW | tools/generate_schema_wrapper.py | 651 | CODE | |
| LOW | tools/generate_schema_wrapper.py | 825 | CODE | |
| LOW | tools/vega_expr.py | 572 | CODE | |
| LOW | tools/vega_expr.py | 608 | CODE | |
| LOW | tools/vega_expr.py | 850 | CODE | |
| LOW | tools/update_init_file.py | 185 | CODE | |
| LOW | tools/update_init_file.py | 209 | CODE | |
| LOW | tools/schemapi/schemapi.py | 196 | CODE | |
| LOW | tools/schemapi/schemapi.py | 424 | CODE | |
| LOW | tools/schemapi/schemapi.py | 474 | CODE | |
| LOW | tools/schemapi/schemapi.py | 202 | CODE | |
| LOW | tools/schemapi/schemapi.py | 1421 | CODE | |
| LOW | tools/schemapi/utils.py | 1305 | CODE | |
| LOW | tools/schemapi/utils.py | 441 | CODE | |
| LOW | tools/schemapi/utils.py | 578 | CODE | |
| LOW | tools/schemapi/codegen.py | 95 | CODE | |
| LOW | tools/schemapi/codegen.py | 381 | CODE | |
| LOW | sphinxext/schematable.py | 20 | CODE | |
| LOW | sphinxext/altairgallery.py | 207 | CODE | |
| LOW | tests/__init__.py | 216 | CODE | |
| LOW | tests/vegalite/v6/test_api.py | 60 | CODE | |
| LOW | tests/vegalite/v6/test_api.py | 836 | CODE | |
| LOW | altair/datasets/_cache.py | 266 | CODE | |
| LOW | altair/datasets/_reader.py | 462 | CODE | |
| LOW | altair/datasets/_exceptions.py | 30 | CODE | |
| LOW | altair/expr/core.py | 37 | CODE | |
| LOW | altair/utils/save.py | 78 | CODE | |
| LOW | altair/utils/schemapi.py | 198 | CODE | |
| LOW | altair/utils/schemapi.py | 426 | CODE | |
| LOW | altair/utils/schemapi.py | 476 | CODE | |
| LOW | altair/utils/schemapi.py | 204 | CODE | |
| LOW | altair/utils/schemapi.py | 1423 | CODE | |
| LOW | altair/utils/core.py | 228 | CODE | |
| LOW | altair/utils/core.py | 337 | CODE | |
| LOW | altair/utils/core.py | 469 | CODE | |
| LOW | altair/utils/core.py | 898 | CODE | |
| LOW | altair/utils/_transformed_data.py | 182 | CODE | |
| LOW | altair/utils/_transformed_data.py | 247 | CODE | |
| LOW | altair/utils/_transformed_data.py | 429 | CODE | |
| LOW | altair/utils/_transformed_data.py | 527 | CODE | |
| LOW | altair/utils/mimebundle.py | 65 | CODE | |
| LOW | altair/utils/mimebundle.py | 171 | CODE | |
| LOW | altair/utils/data.py | 180 | CODE | |
| LOW | altair/utils/data.py | 317 | CODE | |
| LOW | altair/utils/data.py | 366 | CODE | |
| LOW | altair/utils/data.py | 388 | CODE | |
| LOW | altair/utils/_show.py | 11 | CODE | |
| LOW | altair/vegalite/v6/api.py | 637 | CODE | |
| LOW | altair/vegalite/v6/api.py | 4306 | CODE | |
| LOW | altair/vegalite/v6/api.py | 5257 | CODE | |
| LOW | altair/vegalite/v6/api.py | 5398 | CODE | |
| LOW | altair/vegalite/v6/api.py | 5434 | CODE | |
| LOW | altair/vegalite/v6/api.py | 1051 | CODE | |
| LOW | altair/jupyter/jupyter_chart.py | 24 | CODE | |
| LOW | altair/jupyter/jupyter_chart.py | 52 | CODE | |
| LOW | altair/jupyter/jupyter_chart.py | 221 | CODE | |
| LOW | altair/jupyter/jupyter_chart.py | 353 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/utils/test_plugin_registry.py | 118 | except ValueError: | CODE |
| HIGH | altair/utils/server.py | 130 | except NameError: | CODE |
| HIGH | altair/utils/_show.py | 50 | except webbrowser.Error: | CODE |
| HIGH | altair/vegalite/v6/api.py | 572 | except (AttributeError, TypeError): | CODE |
| HIGH | altair/vegalite/v6/api.py | 5443 | except KeyError: | CODE |
| HIGH | altair/vegalite/v6/api.py | 4142 | except jsonschema.ValidationError: | CODE |
| HIGH | altair/vegalite/v6/api.py | 5464 | except KeyError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/generate_schema_wrapper.py | 589 | def update_vega_themes(fp: Path, /, indent: str | int | None = 2) -> None: | STRING |
| LOW | tools/codemod.py | 26 | __all__ = ["extract_func_def", "extract_func_def_embed", "ruff", "ruff_inline_docs"] | CODE |
| LOW | tools/__init__.py | 11 | __all__ = [ | CODE |
| LOW | tools/fs.py | 15 | __all__ = [ | CODE |
| LOW | tools/versioning.py | 48 | __all__ = ["VERSIONS"] | CODE |
| LOW | tools/versioning.py | 195 | def update_all(self) -> None: | CODE |
| LOW | tools/versioning.py | 200 | def update_vega_embed(self) -> None: | CODE |
| LOW | tools/vega_expr.py | 37 | __all__ = ["parse_expressions", "write_expr_module"] | CODE |
| LOW | tools/update_init_file.py | 49 | def update__all__variable() -> None: | CODE |
| LOW | tools/update_init_file.py | 230 | def update_dynamic__all__(source: str | Path, /) -> None: | CODE |
| LOW | tools/datasets/datapackage.py | 28 | __all__ = ["DataPackage"] | CODE |
| LOW | tools/datasets/__init__.py | 41 | __all__ = ["app"] | CODE |
| LOW | tools/datasets/npm.py | 22 | __all__ = ["Npm"] | CODE |
| LOW | tools/schemapi/__init__.py | 14 | __all__ = [ | CODE |
| LOW | tools/schemapi/utils.py | 130 | def _update_literals(self, name: str, tp: str, /) -> None: | CODE |
| LOW | tools/schemapi/utils.py | 179 | def update_aliases(self, *name_statement: tuple[str, str]) -> None: | CODE |
| LOW | altair/theme.py | 89 | __all__ = [ | CODE |
| LOW | altair/_magics.py | 15 | __all__ = ["vegalite"] | CODE |
| LOW | altair/__init__.py | 8 | __all__ = [ | CODE |
| LOW | altair/datasets/_cache.py | 51 | __all__ = ["CsvCache", "DatasetCache", "SchemaCache", "csv_cache"] | CODE |
| LOW | altair/datasets/_data.py | 291 | def set_default_engine(self, engine: _Backend) -> None: | CODE |
| LOW | altair/datasets/_typing.py | 15 | __all__ = ["Dataset", "Extension", "Metadata"] | CODE |
| LOW | altair/datasets/_loader.py | 21 | __all__ = ["Loader", "load"] | CODE |
| LOW | altair/datasets/__init__.py | 89 | __all__ = ["Loader", "data", "load", "url"] | CODE |
| LOW | altair/datasets/_readimpl.py | 51 | __all__ = ["is_available", "pa_any", "pd_only", "pd_pyarrow", "pl_only", "read", "scan"] | CODE |
| LOW | altair/datasets/_constraints.py | 23 | __all__ = [ | CODE |
| LOW | altair/utils/plugin_registry.py | 193 | def _set_state(self, state: dict[str, Any]) -> None: | CODE |
| LOW | altair/utils/deprecation.py | 17 | __all__ = [ | CODE |
| LOW | altair/vegalite/v6/__init__.py | 28 | __all__ = [ | CODE |
| LOW | altair/vegalite/v6/api.py | 158 | __all__ = [ | CODE |
| LOW | altair/vegalite/v6/schema/_typing.py | 37 | __all__ = [ | CODE |
| LOW | altair/vegalite/v6/schema/__init__.py | 13 | __all__ = [ | CODE |
| LOW | altair/vegalite/v6/schema/_config.py | 24 | __all__ = [ | CODE |
| LOW | altair/typing/__init__.py | 5 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | altair/utils/_transformed_data.py | 141 | # Return DataFrame (or None if it was excluded) if input was a simple Chart | COMMENT |
| LOW | altair/vegalite/v6/api.py | 2081 | Notes | COMMENT |
| LOW | doc/conf.py | 1 | # !/usr/bin/env python3 | COMMENT |
| LOW | doc/conf.py | 81 | COMMENT | |
| LOW | doc/conf.py | 121 | COMMENT | |
| LOW | doc/conf.py | 241 | COMMENT | |
| LOW | doc/conf.py | 261 | } | COMMENT |
| LOW | doc/conf.py | 281 | COMMENT | |
| LOW | doc/conf.py | 301 | # 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja' | COMMENT |
| LOW | doc/conf.py | 321 | # The paper size ('letterpaper' or 'a4paper'). | COMMENT |
| LOW | doc/conf.py | 341 | ), | COMMENT |
| LOW | doc/conf.py | 361 | # If false, no module index is generated. | COMMENT |
| LOW | doc/conf.py | 401 | # If true, do not generate a @detailmenu in the "Top" node's menu. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/utils/test_data.py | 38 | CODE | |
| LOW | tests/utils/test_data.py | 43 | CODE | |
| LOW | altair/utils/save.py | 171 | CODE | |
| LOW | altair/utils/html.py | 330 | CODE | |
| LOW | altair/utils/display.py | 49 | CODE | |
| LOW | altair/vegalite/v6/api.py | 1628 | CODE | |
| LOW | altair/vegalite/v6/api.py | 1741 | CODE | |
| LOW | altair/vegalite/v6/api.py | 2333 | CODE | |
| LOW | altair/vegalite/v6/api.py | 2538 | CODE | |
| LOW | altair/vegalite/v6/api.py | 2906 | CODE | |
| LOW | altair/vegalite/v6/api.py | 4342 | CODE | |
| LOW | altair/vegalite/v6/schema/mixins.py | 490 | CODE | |
| LOW | altair/vegalite/v6/schema/mixins.py | 780 | CODE | |
| LOW | altair/vegalite/v6/schema/mixins.py | 860 | CODE | |
| LOW | altair/vegalite/v6/schema/mixins.py | 954 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/schemapi/schemapi.py | 726 | # Transpose the param name columns into rows to facilitate looping | COMMENT |
| MEDIUM | altair/utils/schemapi.py | 728 | # Transpose the param name columns into rows to facilitate looping | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 4966 | # Use to_dict() for robust equality comparison of SchemaBase objects. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_examples.py | 44 | except Exception as err: | CODE |
| LOW | tests/test_examples.py | 73 | except Exception as err: | CODE |
| LOW | altair/datasets/_data.py | 268 | except Exception: | CODE |
| LOW | altair/datasets/_reader.py | 214 | except Exception as e: | CODE |
| LOW | altair/datasets/_reader.py | 221 | except Exception as e: | CODE |
| LOW | altair/vegalite/v6/api.py | 3813 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/schemapi/schemapi.py | 680 | # Check if str as e.g. first item can be a 0 | COMMENT |
| LOW | altair/utils/schemapi.py | 682 | # Check if str as e.g. first item can be a 0 | COMMENT |
| LOW | altair/vegalite/v6/api.py | 4093 | # Check if we have a cached hash from before data was hoisted | COMMENT |