A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix(table): accept ChartDataType in mo.ui.table to resolve pyright error when passing chart.value (#9674)
Vishak Baddur58b7b5faeab4
diff --git a/marimo/_plugins/ui/_impl/table.py b/marimo/_plugins/ui/_impl/table.pyindex 78db3bd387..e8a06ad1d9 100644--- a/marimo/_plugins/ui/_impl/table.py+++ b/marimo/_plugins/ui/_impl/table.py@@ -544,7 +544,10 @@ class table(data: ListOrTuple[str | int | float | bool | MIME | None]| ListOrTuple[dict[str, JSONType]]| dict[str, ListOrTuple[JSONType]]- | IntoDataFrame,+ | list[dict[str, Any]]+ | dict[str, list[Any]]+ | IntoDataFrame+ | IntoLazyFrame,pagination: bool | None = None,selection: Literal["single", "multi", "single-cell", "multi-cell"]| None = "multi",diff --git a/marimo/_plugins/ui/_impl/utils/dataframe.py b/marimo/_plugins/ui/_impl/utils/dataframe.pyindex 68ba9008d7..a724bc0cbe 100644--- a/marimo/_plugins/ui/_impl/utils/dataframe.py+++ b/marimo/_plugins/ui/_impl/utils/dataframe.py@@ -3,7 +3,7 @@ from __future__ import annotationsfrom typing import Any, TypeVar, Union-from narwhals.typing import IntoDataFrame+from narwhals.typing import IntoDataFrame, IntoLazyFramefrom marimo import _loggersfrom marimo._output.data import data as mo_data@@ -69,8 +69,11 @@ TableData = Union[list[JSONType],ListOrTuple[Union[str, int, float, bool, MIME, None]],ListOrTuple[dict[str, JSONType]],+ list[dict[str, Any]],+ dict[str, list[Any]],dict[str, ListOrTuple[JSONType]],IntoDataFrame,+ IntoLazyFrame,]