スキル一覧に戻る
hydrosolutions

marimo

by hydrosolutions

Water systems simulation and optimization toolbox

0🍴 0📅 2026年1月19日
GitHubで見るManusで実行

SKILL.md


name: marimo description: Create reactive marimo notebooks for data analysis and visualization. Use when the user asks to create a marimo notebook, work with reactive notebooks, or build interactive data visualizations. User-invocable with /marimo command. user_invocable: /marimo

Marimo Notebooks

Marimo is a reactive notebook framework. Key differences from Jupyter:

  • Reactive: Cells auto-execute when dependencies change
  • No redeclaration: Variables cannot be redeclared across cells
  • DAG structure: Notebook forms a directed acyclic graph
  • Auto-display: Last expression in a cell is displayed automatically

Cell Structure

@app.cell
def _():
    # your code here
    return

Marimo handles function parameters and return statements based on variable dependencies.

Code Requirements

  1. All code must be complete and runnable
  2. Import all modules in the first cell, always including import marimo as mo
  3. Never redeclare variables across cells
  4. Ensure no cycles in the dependency graph
  5. Never use global definitions
  6. No comments in markdown or SQL cells

Reactivity Rules

  • UI element values accessed via .value (e.g., slider.value)
  • UI values cannot be accessed in the same cell where defined
  • Underscore-prefixed variables (e.g., _my_var) are cell-local

Quick Reference

TaskPattern
Markdownmo.md("# Title")
MatplotlibUse plt.gca() as last expression
Plotly/AltairReturn figure/chart object directly
SQL (DuckDB)df = mo.sql(f"SELECT * FROM table")
Layoutmo.hstack([a, b]), mo.vstack([a, b]), mo.tabs({...})
Stop executionmo.stop(condition, output)

Troubleshooting

IssueSolution
Circular dependenciesReorganize code to remove cycles
UI value access errorMove value access to separate cell from definition
Viz not showingEnsure viz object is last expression

Run marimo check --fix to catch and fix common issues.

Creating a Notebook

Use scripts/create_notebook.py to generate a starter notebook:

uv run scripts/create_notebook.py my_analysis -o notebooks/

Resources

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です