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
dont show download action buttons in edit mode (#1491)
Akshay Agrawal52eed3a0abc7
diff --git a/frontend/src/components/editor/controls/Controls.tsx b/frontend/src/components/editor/controls/Controls.tsxindex e197f30d9c..3c0eb2d0f3 100644--- a/frontend/src/components/editor/controls/Controls.tsx+++ b/frontend/src/components/editor/controls/Controls.tsx@@ -215,10 +215,10 @@ const RunControlButton = ({};const topRightControls =- "absolute top-3 right-5 m-0 flex items-center space-x-3 min-h-[28px] no-print pointer-events-auto z-50";+ "absolute top-3 right-5 m-0 flex items-center space-x-3 min-h-[28px] no-print pointer-events-auto z-30";const bottomRightControls =- "absolute bottom-5 right-5 flex items-center space-x-3 no-print pointer-events-auto z-50";+ "absolute bottom-5 right-5 flex items-center space-x-3 no-print pointer-events-auto z-30";const bottomLeftControls ="absolute bottom-5 left-3 m-0 flex flex-col-reverse gap-2 items-center no-print pointer-events-auto z-50";diff --git a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsxindex c5e3193c01..93fd05bd1a 100644--- a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx+++ b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx@@ -81,11 +81,13 @@ const VerticalLayoutRenderer: React.FC<VerticalLayoutProps> = ({name={cell.name}/>))}- <ActionButtons- canShowCode={canShowCode}- showCode={showCode}- onToggleShowCode={() => setShowCode((v) => !v)}- />+ {mode === "read" && (+ <ActionButtons+ canShowCode={canShowCode}+ showCode={showCode}+ onToggleShowCode={() => setShowCode((v) => !v)}+ />+ )}</VerticalLayoutWrapper>);};