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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="./favicon.ico" />
<!-- Preload is necessary because we show these images when we disconnect from the server,
but at that point we cannot load these images from the server -->
<link rel="preload" href="./assets/gradient-yHQUC_QB.png" as="image" />
<link rel="preload" href="./assets/noise-60BoTA8O.png" as="image" />
<!-- Preload the fonts -->
<link rel="preload" href="./assets/Lora-VariableFont_wght-CZceb_kH.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
<link rel="preload" href="./assets/PTSans-Regular-Bam3NpBI.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
<link rel="preload" href="./assets/PTSans-Bold-C_DwAp7Z.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
<link rel="preload" href="./assets/FiraMono-Regular-CEsLFVD9.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
<link rel="preload" href="./assets/FiraMono-Medium-D5MAsWEG.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
<link rel="preload" href="./assets/FiraMono-Bold-C6PDArdf.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="a marimo app" />
<link rel="apple-touch-icon" href="./apple-touch-icon.png" />
<link rel="manifest" href="./manifest.json" />
<script data-marimo="true">
function __resizeIframe(obj) {
const scrollbarHeight = 20; // Max between windows, mac, and linux
function setHeight() {
// Guard against race condition where iframe isn't ready
if (!obj.contentWindow?.document?.documentElement) {
return;
}
const element = obj.contentWindow.document.documentElement;
// If there is no vertical scrollbar, we don't need to resize the iframe
if (element.scrollHeight === element.clientHeight) {
return;
}
// Create a new height that includes the scrollbar height if it's visible
const hasHorizontalScrollbar = element.scrollWidth > element.clientWidth;
const newHeight = element.scrollHeight + (hasHorizontalScrollbar ? scrollbarHeight : 0);
// Only update the height if it's different from the current height
if (obj.style.height !== `${newHeight}px`) {
obj.style.height = `${newHeight}px`;
}
}
// Resize the iframe to the height of the content and bottom scrollbar height
setHeight();
// Resize the iframe when the content changes
const resizeObserver = new ResizeObserver((_entries) => {
setHeight();
});
// Only observe if iframe content is ready
if (obj.contentWindow?.document?.body) {
resizeObserver.observe(obj.contentWindow.document.body);
}
}
</script>
<marimo-filename hidden>{{ filename }}</marimo-filename>
<title>{{ title }}</title>
<script type="module" crossorigin src="./assets/index-B8mbfE_Q.js"></script>
<link rel="stylesheet" crossorigin href="./assets/cells-jmgGt1lS.css">
<link rel="stylesheet" crossorigin href="./assets/markdown-renderer-DdDKmWlR.css">
<link rel="stylesheet" crossorigin href="./assets/JsonOutput-B7vuddcd.css">
<link rel="stylesheet" crossorigin href="./assets/index-DtdvIKY3.css">
</head>
<body>
<div id="root"></div>
<script data-marimo="true">
Object.defineProperty(window, "__MARIMO_MOUNT_CONFIG__", {
value: Object.freeze('{{ mount_config }}'),
writable: false,
configurable: false,
});
</script>
</body>
</html>