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.

Add quick actions to change cell output area (#5596)

Trevor Manz3bb92674e516
diff --git a/frontend/src/components/editor/actions/useConfigActions.tsx b/frontend/src/components/editor/actions/useConfigActions.tsx
index 509963837e..8f53d2e7fe 100644
--- a/frontend/src/components/editor/actions/useConfigActions.tsx
+++ b/frontend/src/components/editor/actions/useConfigActions.tsx
@@ -149,6 +149,32 @@ export function useConfigActions() {
});
},
},
+ {
+ label: "Config > Set cell output area: above",
+ hidden: config.display.cell_output === "above",
+ handle: () => {
+ handleUserConfig({
+ ...config,
+ display: {
+ ...config.display,
+ cell_output: "above",
+ },
+ });
+ },
+ },
+ {
+ label: "Config > Set cell output area: below",
+ hidden: config.display.cell_output === "below",
+ handle: () => {
+ handleUserConfig({
+ ...config,
+ display: {
+ ...config.display,
+ cell_output: "below",
+ },
+ });
+ },
+ },
];
return actions.filter((a) => !a.hidden);