{"record":{"id":"926d7f8e9b39e9a3","repo":"pola-rs/polars","slug":"altair-has-no-method-mark-attr","errorCode":null,"errorMessage":"Altair has no method 'mark_{attr}'","messagePattern":"Altair has no method 'mark_(.+?)'","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/dataframe/plotting.py","lineNumber":241,"sourceCode":"        if size is not None:\n            encodings[\"size\"] = size\n        return (\n            self._chart.mark_point(tooltip=True)\n            .encode(\n                **encodings,\n                **kwargs,\n            )\n            .interactive()\n        )\n\n    # Alias to `point` because of how common it is.\n    scatter = point\n\n    def __getattr__(self, attr: str) -> Callable[..., alt.Chart]:\n        method = getattr(self._chart, f\"mark_{attr}\", None)\n        if method is None:\n            msg = f\"Altair has no method 'mark_{attr}'\"\n            raise AttributeError(msg)\n\n        accepts_tooltip_argument = \"tooltip\" in {\n            value.name for value in inspect.signature(method).parameters.values()\n        }\n        if accepts_tooltip_argument:\n\n            def func(**kwargs: EncodeKwds) -> alt.Chart:\n                return method(tooltip=True).encode(**kwargs).interactive()\n        else:\n\n            def func(**kwargs: EncodeKwds) -> alt.Chart:\n                return method().encode(**kwargs).interactive()\n\n        return func\n","sourceCodeStart":223,"sourceCodeEnd":256,"githubUrl":"https://github.com/pola-rs/polars/blob/df599052daf96e7a9cc30a3b0c6bd25d6947e3c0/py-polars/src/polars/dataframe/plotting.py#L223-L256","documentation":"Error \"Altair has no method 'mark_{attr}'\" thrown in pola-rs/polars.","triggerScenarios":"Thrown at py-polars/src/polars/dataframe/plotting.py:241 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"df599052daf96e7a9cc30a3b0c6bd25d6947e3c0","analyzedAt":"2026-08-16T12:10:03.978Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}