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
/* Copyright 2026 Marimo. All rights reserved. */
import React, { type PropsWithChildren } from "react";
import { type ConnectionStatus, ConnectionState } from "@/core/session/types";
import { Disconnected } from "../Disconnected";
interface Props {
className?: string;
connection: ConnectionStatus;
}
export const AppHeader: React.FC<PropsWithChildren<Props>> = ({
connection,
className,
children,
}) => {
return (
<div className={className}>
{children}
{connection.state === ConnectionState.CLOSED && (
<Disconnected reason={connection.reason} />
)}
</div>
);
};