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: include console outputs in HTML exports when code is shown (#1345)
Akshay Agrawala53944e1c044
diff --git a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsxindex 798866fa5b..8a3f172b65 100644--- a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx+++ b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx@@ -14,6 +14,7 @@ import { cn } from "@/utils/cn";import { Button } from "@/components/ui/button";import { outputIsStale } from "@/core/cells/cell";import { isStaticNotebook } from "@/core/static/static-state";+import { ConsoleOutput } from "@/components/editor/output/ConsoleOutput";type VerticalLayout = null;type VerticalLayoutProps = ICellRendererProps<VerticalLayout>;@@ -50,6 +51,7 @@ const VerticalLayoutRenderer: React.FC<VerticalLayoutProps> = ({key={cell.id}cellId={cell.id}output={cell.output}+ consoleOutputs={cell.consoleOutputs}status={cell.status}code={cell.code}config={cell.config}@@ -60,6 +62,7 @@ const VerticalLayoutRenderer: React.FC<VerticalLayoutProps> = ({runStartTimestamp={cell.runStartTimestamp}interrupted={cell.interrupted}staleInputs={cell.staleInputs}+ name={cell.name}/>))}{canShowCode && (@@ -91,6 +94,7 @@ interface VerticalCellPropsextends Pick<CellRuntimeState,| "output"+ | "consoleOutputs"| "status"| "stopped"| "errored"@@ -103,11 +107,13 @@ interface VerticalCellPropscode: string;mode: AppMode;showCode: boolean;+ name: string;}const VerticalCell = memo(({output,+ consoleOutputs,cellId,status,stopped,@@ -119,6 +125,7 @@ const VerticalCell = memo(code,showCode,mode,+ name,}: VerticalCellProps) => {const cellRef = useRef<HTMLDivElement>(null);@@ -160,6 +167,14 @@ const VerticalCell = memo(code={code}/></div>+ <ConsoleOutput+ consoleOutputs={consoleOutputs}+ stale={outputStale}+ cellName={name}+ onSubmitDebugger={() => null}+ cellId={cellId}+ debuggerActive={false}+ /></div>);}