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.

2.0 KB
Raw Blame
{
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "id": "Hbol",
      "metadata": {},
      "outputs": [],
      "source": [
        "import marimo as mo"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "id": "MJUe",
      "metadata": {},
      "outputs": [],
      "source": [
        "x = 42"
      ]
    },
    {
      "cell_type": "markdown",
      "id": "vblA",
      "metadata": {
        "marimo": {
          "md_prefix": ""
        }
      },
      "source": [
        "# No prefix\n",
        "\n",
        "Plain triple-quoted markdown."
      ]
    },
    {
      "cell_type": "markdown",
      "id": "bkHC",
      "metadata": {
        "marimo": {
          "md_prefix": "r"
        }
      },
      "source": [
        "# R-prefix\n",
        "\n",
        "Raw triple-quoted markdown."
      ]
    },
    {
      "cell_type": "markdown",
      "id": "lEQa",
      "metadata": {
        "marimo": {
          "md_prefix": "f"
        }
      },
      "source": [
        "# F-prefix\n",
        "\n",
        "F-string with no interpolation."
      ]
    },
    {
      "cell_type": "markdown",
      "id": "PKri",
      "metadata": {
        "marimo": {
          "md_prefix": "fr"
        }
      },
      "source": [
        "# FR-prefix\n",
        "\n",
        "FR-string with no interpolation."
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "id": "Xref",
      "metadata": {},
      "outputs": [],
      "source": [
        "mo.md(f\"The value is **{x}**\")"
      ]
    }
  ],
  "metadata": {
    "language_info": {
      "codemirror_mode": {
        "name": "ipython",
        "version": 3
      },
      "file_extension": ".py",
      "mimetype": "text/x-python",
      "name": "python",
      "nbconvert_exporter": "python",
      "pygments_lexer": "ipython3"
    },
    "marimo": {
      "marimo_version": "0.0.0"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 5
}