README.md

Marimo Template #

A template repository for data analysis projects using marimo notebooks, configured for use with Claude Code.

What is Marimo? #

Marimo is a reactive Python notebook that runs as a Python program. Unlike traditional notebooks, marimo notebooks are:

  • Reactive: Cells automatically update when dependencies change
  • Reproducible: Run as regular Python scripts
  • Git-friendly: Stored as pure Python files
  • Interactive: Built-in widgets and UI elements

What's Included #

This template provides a ready-to-use environment for data analysis with:

  • marimo - Reactive notebook environment
  • pandas - Data manipulation and analysis
  • plotly - Interactive visualizations
  • Claude Skills - Pre-configured skills for marimo and pandas best practices
  • Configuration - Claude Code instructions and marimo display rules

Directory Structure #

.
├── .claude/
│   └── skills/              # Claude Code skills
│       ├── marimo-notebook.md
│       ├── marimo-testing.md
│       └── pandas-best-practices.md
├── docs/
│   └── effective_pandas.md
├── scripts/
│   └── copy_template.py     # Template copy script
├── main.py                  # Example marimo notebook
├── pyproject.toml           # Project dependencies
├── CLAUDE                   # Claude Code instructions
└── MARIMO_RULES.md          # Marimo display patterns

Quick Start #

Use the included Python script to create a new project from this template:

# Interactive mode - will prompt for target directory
./scripts/copy_template.py

# Or specify target directory directly
./scripts/copy_template.py ../my-new-project

The script will:

  • Copy the entire template to your target directory
  • Exclude .git and __pycache__
  • Provide next steps for getting started

Option 2: Manual Clone #

# Clone the repository
git clone https://github.com/mojzis/marimo-template.git my-project
cd my-project

# Remove the git history to start fresh
rm -rf .git
git init

After Copying #

Once you've created your project:

# Navigate to your new project
cd your-project-name

# Install dependencies using uv (recommended)
uv sync

# Or use pip
pip install -r requirements.txt

# Run the example notebook
marimo edit main.py

Working with Claude Code #

This template is optimized for use with Claude Code:

  1. Skills Available:

    • marimo-notebook - Help with marimo notebook development
    • marimo-testing - Testing and debugging marimo notebooks
    • pandas-best-practices - Pandas coding patterns and best practices
  2. Guidelines:

    • See CLAUDE for Claude Code instructions
    • See MARIMO_RULES.md for marimo display patterns
  3. Session Logging: Update the CLAUDE file at the end of each session with your work summary

Requirements #

  • Python 3.11+
  • uv (recommended) or pip

Dependencies #

  • marimo >= 0.17.8
  • pandas >= 2.3.3
  • plotly >= 6.4.0

Learn More #

License #

This template is provided as-is for personal and commercial use.