Skip to content

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.

505 B
Raw Blame
/* Copyright 2026 Marimo. All rights reserved. */

import { mount } from "@/mount";

declare global {
  interface Window {
    __MARIMO_MOUNT_CONFIG__: unknown;
  }
}

// oxlint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope
const el = document.getElementById("root");
if (el) {
  if (!window.__MARIMO_MOUNT_CONFIG__) {
    throw new Error("[marimo] mount config not found");
  }
  mount(window.__MARIMO_MOUNT_CONFIG__, el);
} else {
  throw new Error("[marimo] root element not found");
}