bip-marimo
Generate and edit marimo reactive notebooks correctly. Auto-triggers when working with marimo .py notebook files.
by matsen★ 35 GitHub stars
Install bip-marimo in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Marimo Notebooks
Reactive Python notebooks stored as plain .py files.
Docs: https://docs.marimo.io/ API Reference: https://docs.marimo.io/api/
Environment
Use pixi for all marimo commands:
pixi run marimo edit notebook.py
pixi run marimo run notebook.py
pixi run marimo check notebook.py
pixi run marimo export html notebook.py -o notebook.html
pixi run marimo export ipynb notebook.py -o notebook.ipynb
pixi run marimo convert notebook.ipynb -o notebook.py
Never use --sandbox flag (creates isolated env, ignores your packages).
Cell Structure (Critical)
Every marimo notebook starts with:
import marimo
app = marimo.App()
Each cell is decorated with @app.cell:
@app.cell
def _():
import marimo as mo
import pandas as pd
return mo, pd
@app.cell
def _(mo):
slider = mo.ui.slider(0, 100, value=50, label="Amount")
slider
return (slider,)
@app.cell
def _(mo, slider):
# Auto-runs when slider changes
mo.md(f"Value: **{slider.value}**")
return
Rules
- Return variables other cells need via
return (var1, var2,)tuple - Declare dependencies as function parameters:
def _(mo, slider):means this cell usesmoandslider - No circular dependencies —
marimo checkcatches these - One definition per variable — each variable defined in exactly one cell
- Display by putting expression last in cell, or use
mo.output.replace() - After editing,
pixi run marimo checkvalidates notebook structure (the PostToolUse hook runs this automatically)
Common APIs
import marimo as mo
# Markdown with interpolation
mo.md(f"# Title\nValue is **{x}**")
# UI elements (reactive)
slider = mo.ui.slider(0, 100, value=50, label="Amount")
dropdown = mo.ui.dropdown(["a", "b", "c"], label="Choice")
text = mo.ui.text(placeholder="Enter name")
checkbox = mo.ui.checkbox(label="Enable")
button = mo.ui.button(label="Click me")
# Access values
slider.value # returns current value
# Layout
mo.hstack([elem1, elem2]) # horizontal
mo.vstack([elem1, elem2]) # vertical
mo.accordion({"Section": content})
mo.tabs({"Tab1": content1, "Tab2": content2})
# Output / control flow
mo.output.replace(content) # replace cell output
mo.stop(condition, mo.md("Stopped")) # conditional halt
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the bip-marimo skill do?
Generate and edit marimo reactive notebooks correctly. Auto-triggers when working with marimo .py notebook files.
How do I install the bip-marimo skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the bip-marimo skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…