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.

496 B
Raw Blame
/* Copyright 2026 Marimo. All rights reserved. */
import { createContext } from "react";
import type { ColumnDataTypes } from "../types";

export const ColumnInfoContext = createContext<ColumnDataTypes>(new Map());

export const ColumnNameContext = createContext<string>("");
export const ColumnFetchValuesContext = createContext<
  (req: { column: string }) => Promise<{
    values: unknown[];
    too_many_values: boolean;
  }>
>(() => Promise.resolve({ values: [], too_many_values: false }));