Back to Skills

marimo-batch

An opintionated skill to prepare a marimo notebook to make it ready for a scheduled run.

147stars11forksUpdated 6/12/2026

Security Assessment

Low Risk(75/100)

Detected risks:

Secret Exposure([SKILL.md] api_key=)
Sensitive File Access([SKILL.md] .env)
Security Score75/100

About marimo-batch

The marimo-batch skill is designed to streamline the preparation of marimo notebooks for scheduled batch runs, primarily targeting machine learning workflows. It provides a structured and opinionated framework for defining parameters, environment configurations, and execution patterns, ensuring consistency and reproducibility in batch jobs. By integrating with both a graphical user interface and the command-line interface, marimo-batch allows users to efficiently configure, test, and execute notebooks with minimal setup, addressing the common challenge of managing complex notebook runs and parameter configurations for ML experiments.

Key features include the ability to define model parameters using Pydantic, providing a single source of truth for hyperparameters such as sample size and learning rate. Users can configure these parameters via an interactive UI form or through the CLI, offering flexibility between rapid experimentation and automated batch execution. The skill also supports environment variable management using python-dotenv and EnvConfig, allowing users to securely handle API keys and other configuration values. Additional features include support for column-based notebook organization, logging best practices for monitoring batch jobs, and guidance for integrating tools like Weights and Biases for tracking experiment metrics. Users are also guided on maintaining notebook integrity and performing grid search or hyperparameter sweeps.

The marimo-batch skill is ideal for data scientists, ML engineers, and researchers who need a robust way to prepare and execute notebooks in a reproducible and configurable manner. It is particularly useful for those who want to iterate quickly using a UI for experimentation while also leveraging the CLI for scheduled or large-scale batch jobs. Target users benefit from the skill's structured approach to parameter management, environment setup, and logging, enabling faster iteration, easier debugging, and consistent execution of machine learning workflows.

FAQ

How do I configure model parameters for a batch run?

Model parameters can be configured using Pydantic definitions, either through the interactive UI sliders or via CLI arguments when running the notebook.

Can I run marimo-batch notebooks on different compute platforms?

Yes, the skill supports best practices for batch execution on various compute platforms, including handling batch sizes and detailed logging for monitoring purposes.

How are environment variables managed?

Environment variables can be loaded from a .env file using python-dotenv or manually configured via EnvConfig, which also validates keys before use.

Is it possible to integrate experiment tracking tools?

Yes, the skill supports optional integration with Weights and Biases, including logging ModelParams and setting project and run names if desired.

Are notebook columns preserved during batch runs?

Yes, the skill ensures that any column-based notebook organization is maintained to preserve layout and readability.

All Files

3 files
references/grid.py5.9 KB
View
SKILL.md4.6 KB
View
references/starting-point.py6.1 KB
View

Install marimo-batch

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill