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 { useAtom } from "jotai";
import { atomWithStorage } from "jotai/utils";
import { jotaiJsonStorage } from "@/utils/storage/jotai";
const WRAP_TEXT_KEY = "marimo:console:wrapText";
// Atom for storing wrap text preference - shared across all console outputs
const wrapTextAtom = atomWithStorage<boolean>(
WRAP_TEXT_KEY,
false,
jotaiJsonStorage,
);
export function useWrapText() {
const [wrapText, setWrapText] = useAtom(wrapTextAtom);
return { wrapText, setWrapText };
}