Skip to content

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.

fix: remove toast for notebook saved (#3418)

Myles Scolnickf6769eae8728
diff --git a/frontend/src/core/saving/save-component.tsx b/frontend/src/core/saving/save-component.tsx
index e42bf60670..fbedd17335 100644
--- a/frontend/src/core/saving/save-component.tsx
+++ b/frontend/src/core/saving/save-component.tsx
@@ -19,7 +19,6 @@ import { Button } from "../../components/ui/button";
import { useEvent } from "../../hooks/useEvent";
import { Logger } from "../../utils/Logger";
import { useAutoSave } from "./useAutoSave";
-import { toast } from "../../components/ui/use-toast";
import { getSerializedLayout, useLayoutState } from "../layout/layout";
import { useAtom, useAtomValue, useSetAtom } from "jotai";
import { formatAll } from "../codemirror/format";
@@ -121,11 +120,8 @@ export function useSaveNotebook({ kioskMode, appConfig }: SaveNotebookProps) {
layout: getSerializedLayout(),
persist: true,
}).then(() => {
- if (userInitiated) {
- toast({ title: "Notebook saved" });
- if (autoSaveConfig.format_on_save) {
- formatAll(updateCellCode);
- }
+ if (userInitiated && autoSaveConfig.format_on_save) {
+ formatAll(updateCellCode);
}
setLastSavedNotebook({
names: cellNames,