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
add error boundary for tables (#7362)
Shahmir Varqha92d178c07a6d
diff --git a/frontend/src/plugins/impl/DataTablePlugin.tsx b/frontend/src/plugins/impl/DataTablePlugin.tsxindex 3e8c5d9b4e..23a0e0cfa6 100644--- a/frontend/src/plugins/impl/DataTablePlugin.tsx+++ b/frontend/src/plugins/impl/DataTablePlugin.tsx@@ -55,6 +55,7 @@ import {getPageIndexForRow,loadTableData,} from "@/components/data-table/utils";+import { ErrorBoundary } from "@/components/editor/boundary/ErrorBoundary";import { ContextAwarePanelItem } from "@/components/editor/chrome/panels/context-aware-panel/context-aware-panel";import { Alert, AlertTitle } from "@/components/ui/alert";import { Button } from "@/components/ui/button";@@ -1016,10 +1017,12 @@ export const TableProviders: React.FC<{ children: React.ReactNode }> = ({children,}) => {return (- <Provider store={store}>- <SlotzProvider controller={slotsController}>- <TooltipProvider>{children}</TooltipProvider>- </SlotzProvider>- </Provider>+ <ErrorBoundary>+ <Provider store={store}>+ <SlotzProvider controller={slotsController}>+ <TooltipProvider>{children}</TooltipProvider>+ </SlotzProvider>+ </Provider>+ </ErrorBoundary>);};diff --git a/marimo/_smoke_tests/pandas/dates.py b/marimo/_smoke_tests/pandas/dates.pyindex eda73ff1dc..edfd3803c4 100644--- a/marimo/_smoke_tests/pandas/dates.py+++ b/marimo/_smoke_tests/pandas/dates.py@@ -1,6 +1,6 @@import marimo-__generated_with = "0.17.6"+__generated_with = "0.17.8"app = marimo.App(width="medium")@@ -99,5 +99,12 @@ def _(mo, pd):return+def _(datetime, pd):+ dates_with_null = pd.DataFrame({"mixed": [datetime.now(), None]})+ dates_with_null+ return++if __name__ == "__main__":app.run()