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
/* The slides is full width, but centers the inside content to fit the width of the content. */
.mo-slide-content {
width: 100%;
display: flex;
justify-content: center;
min-height: fit-content;
/* width is normally set to 100%, but we want the content to be centered around
the width needed. */
.output {
/* center the output vertically if there is space,
we use flexbox to center the output horizontally */
margin: auto 0;
max-width: 100%;
width: unset;
}
/* If the first output is the only child, make it flex 1. Cells are wrapped
in a `data-cell-id`/`data-cell-name` div (see `cellDomProps`), so `.output`
is a grandchild rather than a direct child here. */
> *:only-child:has(> .output:only-child, > * > .output:only-child) {
flex: 1;
}
/* Components that should be full width when in slides mode */
div:has(> marimo-ui-element > marimo-vega) {
display: block !important;
flex: 1;
@media (min-width: 500px) {
min-width: 350px;
}
}
}
/* Resize handle for the notes panel below the deck. Self-contained so the
slides layout doesn't have to inherit styles from app-chrome.css. */
.mo-slides-notes-resize {
height: 4px;
background-color: transparent;
transition: background-color 200ms linear;
outline: none;
}
.mo-slides-notes-resize:hover,
.mo-slides-notes-resize[data-resize-handle-active] {
background-color: var(--slate-11);
}
/* helpful for debugging */
/* .mo-slide-content {
background-color: red;
.output {
background-color: green;
}
} */