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.

405 B
Raw Blame
/* Copyright 2026 Marimo. All rights reserved. */
export function useCellRenderCount() {
  return {
    countRender: () => {
      if (process.env.NODE_ENV !== "test") {
        return;
      }

      const currentCount = Number.parseInt(
        document.body.dataset.cellRenderCount || "0",
        10,
      );
      document.body.dataset.cellRenderCount = (currentCount + 1).toString();
    },
  };
}