marimo-batch

Installation
Summary

Prepare marimo notebooks for scheduled batch execution with CLI parameters and optional experiment tracking.

  • Converts UI-based parameters into Pydantic models that support both interactive forms and command-line argument parsing
  • Enables dual-mode execution: iterate with the UI, then run batch jobs via CLI with arguments like --sample-size 4096 --learning-rate 0.005
  • Optionally integrates Weights and Biases for experiment logging and parameter tracking
  • Includes EnvConfig for managing environment variables and API keys with optional validators
  • Preserves notebook column layouts and structure during modifications
SKILL.md

Pydantic is a great way to declare a source of truth for a batch job, especially for ML. You can declare something like:

from pydantic import BaseModel, Field

class ModelParams(BaseModel):
    sample_size: int = Field(
        default=1024 * 4, description="Number of training samples per epoch."
    )
    learning_rate: float = Field(default=0.01, description="Learning rate for the optimizer.")

You can fill these model params with two methods too, you can imagine a form in the UI.

Related skills
Installs
1.6K
GitHub Stars
134
First Seen
Feb 10, 2026