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 running status icon to account for sidebar (#1482)
Akshay Agrawal18a58127c7a6
diff --git a/frontend/src/components/editor/header/status.tsx b/frontend/src/components/editor/header/status.tsxindex 104b790a19..1cf8342968 100644--- a/frontend/src/components/editor/header/status.tsx+++ b/frontend/src/components/editor/header/status.tsx@@ -19,7 +19,7 @@ export const StatusOverlay: React.FC<{};const topLeftStatus =- "absolute top-3 left-4 m-0 flex items-center space-x-3 min-h-[28px] no-print pointer-events-auto z-30";+ "absolute top-4 left-4 m-0 ml-8 flex items-center space-x-3 min-h-[28px] no-print pointer-events-auto z-50 hover:cursor-pointer";const DisconnectedIcon = () => (<Tooltip content="App disconnected">@@ -30,14 +30,15 @@ const DisconnectedIcon = () => ();const RunningIcon = () => (- <div- className={topLeftStatus}- data-testid="loading-indicator"- title={"Marimo is busy computing. Hang tight!"}- onClick={notebookScrollToRunning}- >- <HourglassIcon className="running-app-icon" size={30} strokeWidth={1} />- </div>+ <Tooltip content={"Jump to running cell"} side="right">+ <div+ className={topLeftStatus}+ data-testid="loading-indicator"+ onClick={notebookScrollToRunning}+ >+ <HourglassIcon className="running-app-icon" size={30} strokeWidth={1} />+ </div>+ </Tooltip>);const NoiseBackground = () => (diff --git a/frontend/src/core/cells/actions.ts b/frontend/src/core/cells/actions.tsindex 91eea6e041..c40d55ae30 100644--- a/frontend/src/core/cells/actions.ts+++ b/frontend/src/core/cells/actions.ts@@ -2,8 +2,8 @@import { store } from "../state/jotai";import { Objects } from "@/utils/objects";-import { EditorView } from "@codemirror/view";-import { getCellEditorView, notebookAtom } from "./cells";+import { notebookAtom } from "./cells";+import { scrollAndHighlightCell } from "@/components/editor/links/cell-link";/*** Scroll to the first cell that is currently in "running" state.@@ -17,9 +17,5 @@ export function notebookScrollToRunning() {if (!cell) {return;}- const view = getCellEditorView(cell[0]);- view?.dispatch({- selection: { anchor: 0 },- effects: [EditorView.scrollIntoView(0, { y: "center" })],- });+ scrollAndHighlightCell(cell[0], "focus");}