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
improvement: lazily load tracing panel (#4484)
Shahmir Varqhadc3994a1f431
diff --git a/frontend/src/components/editor/chrome/panels/tracing-panel.tsx b/frontend/src/components/editor/chrome/panels/tracing-panel.tsxindex a80d3284c9..c8812d2178 100644--- a/frontend/src/components/editor/chrome/panels/tracing-panel.tsx+++ b/frontend/src/components/editor/chrome/panels/tracing-panel.tsx@@ -1,7 +1,27 @@/* Copyright 2024 Marimo. All rights reserved. */-import { Tracing } from "@/components/tracing/tracing";+import { Spinner } from "@/components/icons/spinner";import React from "react";+const LazyTracing = React.lazy(() =>+ import("@/components/tracing/tracing").then((module) => {+ return {+ default: module.Tracing,+ };+ }),+);+export const TracingPanel: React.FC = () => {- return <Tracing />;+ return (+ <React.Suspense fallback={<Loading />}>+ <LazyTracing />+ </React.Suspense>+ );+};++const Loading = () => {+ return (+ <div className="flex flex-col items-center justify-center h-full">+ <Spinner />+ </div>+ );};