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 type { RuntimeCell } from "@/core/cells/types";
import { Logger } from "@/utils/Logger";
/**
* Build-time stub for `@/components/slides/slide-cell-view`, wired up via
* `resolve.alias` in `frontend/islands/vite.config.mts`. Islands embeds gate
* off the slides "show code" toggle entirely (see `useNotebookCodeAvailable`
* + `isIslands()`), so neither view is reachable at runtime there.
*
* Replacing the module at build time keeps the entire CodeMirror /
* Codeium / `@bufbuild/protobuf` import subtree out of the islands bundle,
* which both shrinks the bundle and lets `islands/validate.sh` pass — the
* upstream protobuf code contains a `process.env.BUF_BIGINT_DISABLE`
* runtime check that the validator otherwise flags.
*/
export const SlideCellView = (_props: { cell: RuntimeCell }) => {
Logger.warn(
"SlideCellView islands stub rendered; this should never happen in a read-only embed.",
);
return null;
};
export const SlideCellReadOnlyView = (_props: { cell: RuntimeCell }) => {
Logger.warn(
"SlideCellReadOnlyView islands stub rendered; this should never happen in a read-only embed.",
);
return null;
};