Starter codebase to use Marimo reactive notebooks to build a reusable, customizable, Prompt Library.
Take this codebase and use it as a starter codebase to build your own personal prompt library.
Marimo reactive notebooks & Prompt Library walkthrough
Run multiple prompts against multiple models (SLMs & LLMs) walkthrough


This is a simple demo of the Marimo Reactive Notebook - Install hyper modern UV Python Package and Project - Install dependencies
uv sync- Install marimouv pip install marimo- To Edit, Runuv run marimo edit marimo_is_awesome_demo.py- To View, Runuv run marimo run marimo_is_awesome_demo.py- Then use your favorite IDE & AI Coding Assistant to edit themarimo_is_awesome_demo.pydirectly or via the UI.
Quickly run and test prompts across models - 🟡 Copy
.env.sampleto.envand set your keys (minimally setOPENAI_API_KEY) - Add other keys and update the notebook to add support for additional SOTA LLMs - 🟡 Install Ollama (https://ollama.ai/) and pull the models you want to use - Update the notebook to use Ollama models you have installed - To Edit, Runuv run marimo edit adhoc_prompting.py- To View, Runuv run marimo run adhoc_prompting.py
Build, Manage, Reuse, Version, and Iterate on your Prompt Library - 🟡 Copy
.env.sampleto.envand set your keys (minimally setOPENAI_API_KEY) - Add other keys and update the notebook to add support for additional SOTA LLMs - 🟡 Install Ollama (https://ollama.ai/) and pull the models you want to use - Update the notebook to use Ollama models you have installed - To Edit, Runuv run marimo edit prompt_library.py- To View, Runuv run marimo run prompt_library.py
Quickly test a single prompt across multiple language models - 🟡 Ensure your
.envfile is set up with the necessary API keys for the models you want to use - 🟡 Install Ollama (https://ollama.ai/) and pull the models you want to use - Update the notebook to use Ollama models you have installed - To Edit, Runuv run marimo edit multi_llm_prompting.py- To View, Runuv run marimo run multi_llm_prompting.py
Compare and rank multiple language models across various prompts - 🟡 Ensure your
.envfile is set up with the necessary API keys for the models you want to compare - 🟡 Install Ollama (https://ollama.ai/) and pull the models you want to use - Update the notebook to use Ollama models you have installed - To Edit, Runuv run marimo edit multi_language_model_ranker.py- To View, Runuv run marimo run multi_language_model_ranker.py
See the Marimo Docs for general usage details
Rapid Prototyping: Seamlessly transition between user and builder mode with
cmd+.to toggle. Consumer vs Producer. UI vs Code.Interactivity: Built-in reactive UI elements enable intuitive data exploration and visualization.
Reactivity: Cells automatically update when dependencies change, ensuring a smooth and efficient workflow.
Out of the box: Use sliders, textareas, buttons, images, dataframe GUIs, plotting, and other interactive elements to quickly iterate on ideas.
It's 'just' Python: Pure Python scripts for easy version control and AI coding.
.py files. They can be versioned with git, run as scripts, and imported into other Python code..py files instead of JSON, making them easier to version control, lint, and integrate with Python tooling.$ claude mcp add marimo-prompt-library \
-- python -m otcore.mcp_server <graph>