Skip to main content
Glama

Cellar

CI License Latest release

A Python notebook built for you and your AI agent to share.

Cellar runs an interactive notebook in your browser on a live Jupyter kernel, with a first-class agent interface built in. Open a folder and both you and an AI agent (like Claude Code) work the same live notebook: the agent adds and runs cells, and the results stream into your browser in real time. No copy-paste, no context handoff, no drift.

It saves ordinary .ipynb files that open in vanilla Jupyter, and it keeps them git-clean so your diffs stay meaningful.

Cellar running a live analysis notebook: a markdown heading, Python cells, and an interactive DataFrame grid, with an outline and live variable inspector in the sidebar

Why Cellar

  • ๐Ÿค You and your agent, one notebook. An agent's runs and edits appear live in your open tab (streaming output, run badges, structural changes), and your edits flow back the same way - the agent is told when you change something under it, so it re-reads instead of treating your edit as a broken tool. You are never looking at stale state.

  • โšก One command, zero setup. Run cellar in any folder. It resolves (or creates) the project venv with uv, starts the kernel, and opens your browser.

  • ๐Ÿ”Œ Zero-config agent connection. Cellar drops a .mcp.json in your workspace, so Claude Code opened in that folder connects automatically over MCP - and re-checks it on every start, so a deleted config heals itself. Other harnesses read their own file (Codex reads .codex/config.toml); the first run offers to add them, and cellar harness add codex does it any time.

  • ๐Ÿงน Git-friendly by design. Clean-on-save strips volatile metadata and normalizes outputs, so re-running a notebook with the same results produces no git diff. Cellar writes the same JSON layout as the rest of the Jupyter ecosystem (keys sorted, one-space indent) and keeps the metadata other tools own in your notebook - a jupytext pairing, nbdev's cell directives, JupyterLab's saved widget state - so a notebook you also open elsewhere stops churning. One upgrade note: older Cellar ordered keys differently, so the first save of a notebook it had written before reformats that file once, in a single large diff that does not come back.

  • ๐Ÿ“Š Rich outputs and data tools. Matplotlib, Plotly, HTML, and full-size images render inline; sort and filter DataFrames in an interactive grid, and inspect the live namespace without leaving the page.

  • ๐Ÿงฑ Databricks, natively. Point-and-click connect binds spark and a WorkspaceClient in the kernel, gives you a Unity Catalog browser, and uploads the notebook you have open into your own workspace folder.

Related MCP server: Jupyter MCP Server

Install

Homebrew (recommended). Trust the formula once, then pick a channel:

brew trust --formula fbereilh/cellar/cellar

Stable - the latest tagged release. Recommended for most people:

brew install fbereilh/cellar/cellar

Latest - tracks main for the newest work, for the adventurous:

brew install --HEAD fbereilh/cellar/cellar

Why trust? Homebrew requires a one-time trust before it will load a third-party tap's formula; --formula trusts just this one (recommended). The install then auto-taps fbereilh/cellar for you, so there's no separate brew tap step.

cellar --update
cellar --version

cellar --update fetches the newest version (install-method aware); cellar --version prints the version, sha, and install method.

git clone https://github.com/fbereilh/cellar.git
cd cellar
make setup

make setup installs deps, builds, and links cellar onto your PATH. make update (or cellar --update) pulls and rebuilds; run make with no target to list all commands.

For the full clone-to-run walkthrough, the kernel/venv resolution order, and every configuration knob, see docs/SETUP.md.

Uninstall

Installed via Homebrew? Remove Cellar, then clean up what it pulled in:

brew uninstall cellar
brew autoremove

Use the fully-qualified brew uninstall fbereilh/cellar/cellar if another tap also provides a cellar formula.

Is brew autoremove safe? Yes - it only removes formulae that were installed as another formula's dependency and are no longer needed by anything. Packages you installed on request are never touched, so a directly-installed node or uv stays. Run brew autoremove --dry-run first if you want to see the list before anything is removed.

Optional - Homebrew doesn't own everything Cellar creates. To also remove Cellar's local data and the tap:

rm -rf ~/.cellar
brew untap fbereilh/cellar

What's in ~/.cellar? Cellar's private Jupyter host env (~/.cellar/host-venv, which holds jupyter-server and is often hundreds of MB), its instance registry (~/.cellar/instances/), your cross-project settings (~/.cellar/settings.json - the default Databricks upload prefix/postfix, and your chat-cell choices: which Claude account, which model, whether replies teach rather than just answer, and whether they may search the web or read workspace files), and any Cellar-only Claude accounts you signed into for chat cells (~/.cellar/claude/<name>). All are optional to delete - Cellar recreates them on the next run, minus any settings you had chosen and any chat sign-in, which you would do again from the sidebar. Your terminal's own claude login lives elsewhere and is never touched, and neither are your projects' .venv folders and notebooks.

Ran it with Docker instead? Nothing was installed on the host - docker rmi cellar removes the image you built.

Run with Docker

Prefer to skip installing anything? If you have Docker, you have Cellar. This path needs only Docker on the host - no Node, Python, or uv - and bakes a reproducible, pinned kernel environment into the image so every run is identical. It's meant for single-user, reproducible, zero-prerequisite use: Cellar has no auth, and one workspace and one Python environment per instance, so it is not for multi-user hosting. The image ships no claude CLI, so chat cells do not work in it - everything else does.

Build the image once, then point it at any project folder:

git clone https://github.com/fbereilh/cellar.git && cd cellar
docker build -t cellar .

# from the project you want to work on:
docker run --rm --init \
  -v "$PWD":/workspace \
  -p 8888:8888 -p 39587:39587 \
  cellar

Open http://localhost:8888 (the container prints it on startup) and you're in. Your folder is mounted at /workspace, so edits, new notebooks, and exports land straight back in it. Ctrl-C (or docker stop) shuts everything down cleanly.

Prefer Compose? It mounts the current directory and publishes both ports for you:

docker compose up --build   # then open http://localhost:8888

Once the image is published to a registry, you can skip the build entirely:

docker run --rm --init -v "$PWD":/workspace -p 8888:8888 -p 39587:39587 ghcr.io/fbereilh/cellar:latest

The reproducible pinned env. The image bakes a uv-managed virtualenv at /opt/cellar-kernel from docker/kernel-requirements.txt - a version-pinned scientific stack (ipykernel, ipywidgets, numpy, pandas, matplotlib, scipy) - and binds the Cellar kernel to it. Every container runs the exact same kernel env, with no network access at start. To make it yours:

  • Rebuild with your own pins (the primary path): edit docker/kernel-requirements.txt, then docker build -t my-cellar .. Swap the base or tool versions with build args, e.g. --build-arg NODE_IMAGE=node:22-bookworm-slim.

  • Ad-hoc extras without a rebuild: mount a requirements file and point CELLAR_REQUIREMENTS at it - -v "$PWD/requirements.txt":/reqs.txt -e CELLAR_REQUIREMENTS=/reqs.txt - and the entrypoint installs them into the kernel venv at startup (needs network).

Connecting an agent. The MCP endpoint is published on http://localhost:39587/mcp (Streamable HTTP). Point an HTTP-capable MCP client at it. (The in-container cellar mcp stdio bridge isn't used from the host, so the image writes no .mcp.json by default; set -e CELLAR_MCP_CONFIG=1 to opt back in for an agent running inside the container.)

Why this image, not a Jupyter base? It's self-contained (Node + uv + Python, multi-stage build) rather than built on a jupyter/docker-stacks conda image. Cellar is uv-first by design - it manages every venv through uv - so a conda base would bolt on a second package manager Cellar never uses, and docker-stacks ships no Node. The container runs isolated (CELLAR_ISOLATED=1, no host registry or reaper), non-root, with fixed published ports and the app/MCP bound to 0.0.0.0.

Good to know (the honest caveats):

  • The kernel environment is the container's baked env, not a host .venv. Point Cellar at a different one by rebuilding, or with -e CELLAR_VENV=/workspace/.venv (it will uv-install ipykernel there at startup if missing).

  • Databricks needs ~/.databrickscfg mounted read-only (-v "$HOME/.databrickscfg":/home/cellar/.databrickscfg:ro, or uncomment the line in docker-compose.yml). A PAT profile works headless; OAuth's browser flow is awkward inside a container.

  • Git blame and diff features need the repo mounted - it is, via /workspace.

  • Linux uid: files are written as uid 1000 by default. If your host user differs, add --user "$(id -u):$(id -g)" so mounted files stay owned by you. (macOS Docker Desktop handles this for you.)

  • Single-user only - don't expose the ports beyond localhost.

Quick start

cd your-project
cellar

Your browser opens to a clean, empty workspace. Click New notebook (or open an existing .ipynb from the sidebar) and start writing and running cells. To bring in an agent, just open one (e.g. Claude Code) in the same folder - it auto-connects through the .mcp.json Cellar wrote, and you can watch it work alongside you.

Ctrl-C stops everything. Run cellar ../other-repo to open a different folder without cd-ing.

Features

Everything you'd expect from a notebook, plus the things that make sharing one with an agent feel natural:

  • Code, Markdown, SQL, Mojo, chat, and raw cells, with a run queue, live run status, and staleness tracking so you always know what's fresh. Adding a code cell picks up the language of the code cell above it, so a run of SQL or Mojo cells doesn't drop back to Python every time you insert one (a cell you add as Markdown or Chat is what you asked for, and with no code cell above it you get Python). A raw cell is nbformat's type for verbatim text a downstream tool reads - Quarto or nbdev frontmatter, an nbconvert directive: Cellar never executes it and never renders it, so it carries no Run button at all and reaches the .ipynb exactly as you typed it. Switch a cell to it from the type label at the right of its toolbar, the command palette, or r in command mode. (A .py jupytext / Databricks-source notebook is rebuilt from its cells on every save and has no raw marker, so it cannot hold one: the option isn't offered there, and setting it is refused rather than lost on the next reload. The HTML export shows a raw cell as muted verbatim text, never as live HTML.)

  • Chat cells - ask Claude about the notebook, from inside it. Add one with the Chat button at the bottom of the notebook or in the hover strip between two cells, or switch an existing cell to Chat from the type label at the right of its toolbar, the command palette, or t in command mode; then write a question and run it: Cellar sends the cells above it (their source and output text, minus any you have hidden from AI) along with your question, then streams the reply back into the cell as rendered markdown that is saved with the notebook. It runs through your Claude Code CLI login and never touches the kernel, so a chat cell answers even in a notebook that never started one. The reply is a fresh model answer every time, so re-running one costs a request and overwrites the answer you were reading - which is why Run all and an agent's batch runs skip chat cells and say so; run one deliberately from its own Run button. Choose which account answers in the sidebar's Chat section: it borrows the claude login you already have in your terminal, or you can sign into a separate Cellar-only account there and switch between them - Cellar can sign out of its own accounts and never of your terminal one. Settings โ†’ Chat cells holds the other choices, all per user rather than per project: which model replies (Sonnet unless you change it), Learning mode, and three opt-ins that are off by default, so out of the box a reply answers from the notebook alone with every tool disabled. Learning mode is off by default too, and changes how a reply is written rather than what it may reach: instead of just answering, the reply teaches - building the idea up from first principles, in short blocks, and checking your understanding as it goes. Allow web search lets a reply run web searches, which means queries derived from your notebook's content reach the search service; it is search only, never arbitrary URL fetching. Allow reading workspace files lets a reply read, glob and grep the files in the workspace to answer about your code: reads are confined to the workspace folder (paths outside it are refused, including through .. or a symlink), the notebook you are chatting in is never readable as a file (the reply already has it as a fresher transcript, minus the cells you hid from AI) and neither are the copies Cellar writes from it or Cellar's own .cellar folder, and the other .ipynb notebooks in the workspace stay unreadable unless you also turn on Allow reading other notebooks. Reading is read-only throughout: a chat cell still cannot write or edit files, or run code. When a reply uses a tool, the output says so: each call adds one short, dimmed line naming the tool and what it was pointed at - the search query, or a file path written relative to the workspace rather than absolute - and marks a call that failed or was refused, so a claim you read is traceable to where it came from. What the tool returned is never shown, so a file's contents stay out of the notebook and out of an exported report. Those lines are saved and exported with the reply. (Needs the claude CLI on your PATH. A .py jupytext / Databricks-source notebook cannot hold a chat cell, for the same reason it cannot hold a raw one, so neither the Chat add buttons nor the menu option is offered there. Images in a machine-written markdown output never load themselves - a reply, or a kernel display(Markdown(...)), shows an image as its alt text or its URL - because a reply is written from notebook content that may not be yours; markdown cells you write are rendered exactly as before.)

  • Mojo cells. Switch a cell to Mojo from the type label at the right of its toolbar, and Cellar runs its Mojo source through Modular's own %%mojo cell magic on the notebook's Python kernel - Modular ships no Mojo Jupyter kernel, and that magic is the supported way to run Mojo in a notebook. The cell stores plain Mojo, so the .ipynb still opens anywhere. Each Mojo cell is a separate program: the magic writes it to a temp file and runs mojo run in a subprocess, so nothing carries from one Mojo cell to the next - no variables, no imports, no definitions - and every one needs its own def main():. That is Modular's model rather than a Cellar limit, and it is why a Mojo cell shows no staleness, cannot be the imports cell, and cannot be exported to a .py module: it holds no Python. Its output arrives when the cell finishes rather than streaming as it goes. It needs the Mojo toolchain in the project environment: run a Mojo cell without it and the cell itself tells you the exact command, uv pip install max. Cellar never installs it for you (~534 MB across 16 packages) - install it and run the cell again, with no kernel restart. (A .py jupytext / Databricks-source notebook cannot hold a Mojo cell, for the same reason it cannot hold a raw or a chat one.)

  • Lift a code block out of prose into a real cell. Every code block a notebook renders - in a chat reply, in a markdown cell, or in a display(Markdown(...)) output - carries a small button in its top-right corner that creates a new cell just below the one it came from, holding exactly that block's code (the fence markers gone; what is inside comes across byte for byte, backticks, indentation and all). The fence's language picks the kind of cell: python gives a code cell, sql a SQL cell, markdown a markdown cell, and an unknown tag - or none at all - gives a code cell. The keyboard does the same for the block under your pointer: e in command mode, or Cmd/Ctrl-Shift-E even while you are typing in a cell, both listed under Settings โ†’ Keyboard shortcuts and rebindable like every other one. (Firefox binds Ctrl-Shift-E to its own network panel and pages cannot override that, which is why the bare e is there.) Extracting changes nothing about the reply itself: nothing scrolls and the cell never drops into its editor, so you keep your place either way (the button does select the cell you clicked in, as any control inside a cell does; the shortcut leaves your selection alone). Several blocks from one reply land in the order you read them. A second click makes another cell rather than doing nothing - the button says so once you have used it. (A .md file open in a tab renders the same markdown but has no notebook to extract into, so it carries no buttons.)

  • TeX math in markdown: $โ€ฆ$ and $$โ€ฆ$$ typeset with KaTeX in markdown cells and .md previews, just like Jupyter. Fonts and styles are bundled, so it works offline; a bad formula shows an inline error instead of blanking the cell. (Prices like $5 and $10 stay prose; an unfenced paragraph of $ some-command shell prompts does typeset, exactly as in Jupyter - put those in a code block. The HTML export shows math as literal $โ€ฆ$ text.)

  • Rich outputs: matplotlib, Plotly, rich HTML, and images you can double-click to view at natural size. HTML tables - a pandas Styler, a table you render with IPython.display.HTML, or one another library emits as rich HTML - get comfortable padding and alignment out of the box, so you don't need a set_table_styles helper on every table; anything you style yourself still wins. (Cellar states a few defaults directly on the header cells and the caption - their color, the caption's weight, and the index/caption alignment - so a whole-table rule such as set_table_styles([{'selector': '', 'props': 'color:#444'}]) moves the data cells but not those; target them directly, e.g. #T_xxxx th, and yours wins.)

  • Interactive DataFrame grid: pandas frames become a sortable, filterable, paginated table instead of a static repr.

  • Run metadata on every cell: a live elapsed clock beside the spinner while it runs (running 12s, so a long Spark or SQL query tells you how long it has been going), then when it last ran, how long it took, and who ran it (you or an agent).

  • Export chosen cells to a .py module (nbdev-style): name a target file in the Export to bar at the top of the notebook, mark the cells you want with the export toggle in each one's toolbar, and Cellar writes that module - a real, committable .py holding just those cells, not a mirror of the whole notebook. It is written when you ask for it and never by an ordinary save: the Export to .py button, naming the target, or marking or unmarking a cell. So editing a marked cell leaves the module exactly as it was until one of those - typing in a notebook never rewrites a git-tracked file behind you. Beside the target you choose what its path is measured from: the workspace root (the default), the notebook folder, so the module travels with the notebook if you move it, or the notebook's git root. Under either of the latter two the bar echoes the workspace file the path resolves to, and it says so when a target cannot resolve at all rather than silently generating nothing. If the notebook has a code root and the module would land outside it, the bar warns you, because that is the case where the export succeeds and the notebook's kernel still cannot import it. It only ever overwrites files it generated, so aiming the target at a module you wrote by hand is refused instead of clobbering it, and unmarking the last cell leaves the module on disk exactly as it was. It also tells you when the module those marks describe is one Python refuses to run: a cell that keeps a from __future__ import ... on the same line as another statement, separated by a semicolon, makes an uncompilable module, and Cellar cannot move that line without reordering the statement riding with it - so the export bar warns you as soon as a marked cell holds one, before you export, naming the line and the one edit that fixes it; an export you then run still writes the module and repeats the warning rather than reporting a clean export. That warning names a problem it found; it is not a promise that the module compiles. Your agent can drive all of it - the target, the base it is measured from, and which cells - so "pull these helpers into lib/utils.py" is one instruction.

  • Coexists with nbdev. Cellar reads nbdev's own cell directives, so a notebook written for nbdev needs no re-marking: a bare #| export in the directive lines at the top of a Python code cell marks that cell for export, and a #|default_exp names the module those cells go to - resolved under the project's lib_path, where nbdev itself puts it, rather than relative to the workspace root as it is outside an nbdev project. Only a plain #| export counts, and only in that leading block, which is nbdev's own rule; exporti, exports, exportd and a #| export <other-module> are left alone, so a cell carrying one lands in the module only if you also mark it with the toggle. Cellar never writes a #| line into your code, so a cell marked that way cannot be unmarked from Cellar: its export toggle stays on and tells you which line to delete, instead of reporting a change the notebook did not take. And because Cellar only ever overwrites modules it generated itself, opening an established nbdev project writes nothing into its library - it reads the marks and the target correctly and says the file at that target is not one it wrote. If the library lives outside the folder you opened Cellar in - the usual layout when you open nbs/ - the target is refused, naming both ways out (open Cellar at the project root, or set an explicit target), rather than leaving a stray module beside your notebooks. nbdev's cleanup (nbdev-clean, and the Jupyter save hook nbdev-install-hooks installs) rebuilds a notebook's metadata from an allowlist and drops everything else, so in an nbdev project it silently erases the settings Cellar keeps there - your export target, report view, header numbering and per-cell export marks. Open Cellar in one and the sidebar says so, names the pyproject.toml it means, and offers nbdev's own supported fix: allowed_metadata_keys and allowed_cell_metadata_keys naming cellar under [tool.nbdev]. Nothing is written until you click - the file is yours - and the write merges, keeping any values those keys already hold and leaving the rest of the file byte-for-byte. A shape Cellar will not edit confidently (an inline table, a value that isn't a plain list) is refused with the two lines to paste in yourself. The card appears only when it applies, and is gone once the keys are there.

  • Checkpoints and undo for agent actions - snapshot before a risky change and roll back.

  • Command palette and Jupyter-style modal keyboard shortcuts for fast navigation, including multi-cell selection: Shift-click (or Shift-J/Shift-K) for a range, Cmd/Ctrl-click to pick out cells that aren't neighbours, Cmd/Ctrl-A for all of them - then delete, move, cut, copy, or change the type of the whole selection in one action.

  • Find in notebook with Ctrl/Cmd-F - search across cell source, rendered markdown, and outputs (with regex), and jump between highlighted matches. You can also find a cell by its id: paste the handle shown in its toolbar (cell #xxxxxxxx, or the full id an agent quotes back at you) and the search jumps straight to that cell. Ids match on the first 8 characters or more, so an ordinary short query never gets mistaken for one - and a regex query searches content only.

  • Collapse a cell to its header with the chevron on its toolbar: input and output hidden, leaving the cell id, the run controls, and a one-line source preview - so a long notebook folds down to something you can still read, run, and reorder. The choice is remembered per notebook and never written into the .ipynb.

  • Copy a cell's input or output from the two buttons on its toolbar. Input gives you the source exactly as you'd edit it (a SQL cell copies its SQL); output gives a readable text form of what the cell shows - stream text, a traceback with the colors stripped, and an HTML table or a DataFrame as a tab-separated table you can paste straight into a spreadsheet (a truncated frame keeps pandas' [N rows x M columns] footer, and preformatted text keeps its alignment). A picture, a Plotly chart, a live widget, or a rich HTML object that is all script (a folium map, a Bokeh chart) has no text form, so a cell whose output is only those leaves the button disabled rather than pasting the <folium.folium.Map ...>-style placeholder Python prints for it.

  • Hide a cell from your agent with the toggle on its toolbar: the cell keeps running and stays on screen for you, but it is withheld from every agent read, search, notebook map and chat transcript. The choice is saved with the notebook.

  • Variable and DataFrame inspection to peek into the live kernel namespace.

  • Git blame and diff gutters right in the editor, and per-cell change bars in the notebook.

  • A sidebar Git section that says, per open notebook, which commit its kernel actually runs against - the code root it uses, that checkout's branch, short SHA, commit subject and date, and a dot when it has uncommitted changes. Because a code root is normally a worktree, a review notebook pointed at PR-482 no longer looks identical to one on main. Below the notebooks, a Worktrees block lists every checkout of the repo that git has registered - inside the workspace or beside it, the outside ones marked external - with a Use as root button that points the notebook you are looking at at that checkout (a worktree whose directory is gone says so instead). It is read-only otherwise - not a source-control panel: no change list, no commit box, no staging, pushing, or branch switching; clicking a row just focuses that notebook's tab. It ships collapsed and reads git only while it is open.

  • Workspace files in tabs: open any file from the sidebar to read or edit it with syntax highlighting. Markdown and .html also get a Source/Preview toggle, so a saved plotly, bokeh, or nbconvert export just renders - inside a sandboxed frame that cannot reach the app. An open file follows the disk: when an agent, a terminal command, or another editor rewrites it, the tab updates in place - editor and rendered preview both - keeping your cursor, scroll position, and undo history. Your unsaved edits are never overwritten: if you have any, the change waits behind a banner offering Reload or Keep mine, and a file deleted underneath you keeps its buffer so saving recreates it. (Files over 2 MB refresh when you switch back to the window rather than the moment they change; notebooks aren't covered yet.) Drag a tab to reorder the strip: a marker shows exactly which slot it will land in, and the new order is remembered per project alongside which files are open. The keyboard gets there too - the strip is a single Tab stop you walk with the arrow keys, Cmd/Ctrl-Shift-โ†/โ†’ moves the focused tab, and Delete closes it.

  • Long notebooks stay fast: only the cells near what you're looking at are kept in the page, so a several-hundred-cell notebook opens and scrolls like a short one. Find, the outline, running, and printing still reach every cell; Settings โ†’ Windowed rendering (or the View menu) turns it off if you'd rather have them all rendered at once.

  • Code roots - point a notebook's kernel at another checkout of the same repo instead of the workspace itself, so one Cellar can serve several at once. Create a worktree (git worktree add roots/pr-482 some-branch), pick it in the Code root bar at the top of the notebook, and that notebook's kernel runs there and imports from there - handy for a review notebook you re-run against a branch to see which findings clear. That bar is off by default - Settings โ†’ Show the code root bar turns it on - so a workspace that never uses roots carries no extra chrome; a notebook that already has a root always shows it, so a kernel is never running somewhere nothing on screen explains. The worktree does not have to sit inside the workspace: a sibling you already have (git worktree add ../winrate-model-pr398 some-branch) is offered too, so you can review a branch without relocating its checkout - Cellar accepts an outside directory only when git worktree list in your workspace names it, and refuses anything else. Every registered worktree is offered: in the picker (an outside one labelled external worktree), and in the sidebar Git section's Worktrees block, which lists them with a Use as root button whether or not this workspace has adopted a root yet. Two notebooks on two roots run side by side, each importing its own copy. Changing a root restarts that notebook's kernel, so its variables are cleared. Only the kernel moves: files, git, checkpoints, and the Python environment stay workspace-wide, so a notebook that declares no root behaves exactly as before - and an external root grants no file access either, so the file tree still shows the workspace and nothing can read inside that worktree through Cellar. (Adopting an external worktree does write one thing there: the agent config for each harness set up in this workspace - .mcp.json, .codex/config.toml - so an agent working in that checkout can reach this Cellar. Each is added to that repo's .git/info/exclude, so it never shows as an untracked change and cannot be committed; Settings โ†’ Set up agents in adopted worktrees turns it off. A .py notebook stores no notebook-level metadata, so it cannot hold a code root - it shows no picker, and a root set on one is refused rather than lost on the next reload; convert it to .ipynb first. Worktrees under roots/ show up as untracked in the outer repo - add roots/ to your .gitignore if that bothers you. Git decorations for files inside a root are not accurate yet, since they are read from the outer checkout - the sidebar's Git section is the one place that reads a root's own checkout, and tells you which commit each notebook is running against.)

  • One kernel per notebook - isolated namespaces, notebooks running in parallel - with a sidebar showing what's actually loaded in memory. Click a kernel's name there to open the notebook it belongs to, including one whose tab you closed while its kernel kept your variables; a notebook that is already open is brought forward rather than opened twice.

A pandas DataFrame rendered as Cellar's interactive grid, sorted by a column, with dtype headers, a filter box, and pagination

A matplotlib line chart rendered inline in a Cellar notebook, showing quarterly revenue by region

Working with agents (MCP)

Cellar exposes an in-process MCP server that shares the live document and kernel with the UI. Point any MCP client at the stdio command:

claude mcp add cellar -- cellar mcp

(or just run cellar and let the auto-written .mcp.json do it). On connect, the agent gets a house-style doctrine that frames the work as building one coherent notebook, plus a rich tool set: read the notebook map and live kernel state, add/edit/move cells, run them, and clear their outputs (add_and_run is the preferred write-and-execute flow; clear_outputs sheds a stale figure or a huge traceback without deleting the cell). It can also see the workspace's code roots (list_roots, with the branch each one has checked out, and external: true on a registered worktree that sits outside the workspace) and point its own notebook at one (use_notebook(name, root)), so you can ask an agent to run its notebook against a specific checkout. An external root moves that notebook's kernel and nothing else - the agent's file reads and writes stay workspace-relative and cannot reach into the worktree - and setting one reports back, as agent_config, what Cellar wrote into that checkout to keep the agent connected there. A jupytext or Databricks-source .py is a notebook here too: list_notebooks lists it and use_notebook pins it by its .py path, so an agent working in one keeps writing to that file whichever tab you switch to (a plain .py module is neither listed nor openable, a .py that does not exist is an error rather than a new .ipynb, and a .py still cannot hold a code root). Because the MCP session is independent of the kernel connection, restarting the kernel never drops the agent's session or your document - and restarting Cellar itself doesn't mean reconnecting the agent either: the bridge re-attaches to the new instance on its own, so the next tool call just works (a call that was in flight when Cellar went away is told its result was lost rather than being silently retried).

A harness that doesn't read .mcp.json gets set up too. Codex reads a project .codex/config.toml and ignores .mcp.json entirely, so the first cellar run in a folder asks which other harnesses you use (and asks once more if a later Cellar learns to set up one it couldn't before). Any time after that:

cellar harness add codex      # or: claude, or all
cellar harness remove codex   # stop managing it (--strip also removes its entry)
cellar harness list           # what Cellar manages here, and each config's state

Cellar keeps the harnesses you've added wired up: every start it checks their config and repairs it if the entry is missing or was deleted. Claude Code is managed by default, which is what makes the zero-config .mcp.json above self-healing. The first-run question only ever adds - skipping it turns nothing off.

Writes merge into an existing config - your other MCP servers and settings are left alone - and re-running is a no-op rather than a duplicate. Your agent gets Cellar's tools while cellar is running in that workspace, since cellar mcp bridges to the live instance rather than starting one of its own.

Your agent is told what you changed. You keep editing the notebook while the agent works, so Cellar reports your changes on the agent's own next tool call: a short "the user deleted cell a1b2c3d4 and edited cell e5f6a7b8" note rides along with the result, and only when there is something to say. If the agent reaches for a cell you just deleted, the error names the cause ("the user deleted it just now in the Cellar UI") instead of the bare "no cell matches id" it gets for a made-up handle - so a normal edit of yours no longer reads to the agent (or to you, watching it) as a broken tool. The note is a bounded summary and the agent is told to re-read the notebook for the details; anything the agent did itself is left out, a second agent's edits are reported the same way as yours, and a cell you hid from the agent stays hidden, changes included.

Your agent can see the plots it draws. When a cell produces a figure, the run result carries the rendered chart as a real image the agent looks at - so it checks the axis labels and the data instead of saving the plot to a scratch file to read it back. It stays cheap by design: an oversized figure is downscaled for the reply (get_full_output with size:"full" returns the original), a run result inlines at most a few images, and the scan-style reads (the notebook map, cell reads, search) keep a terse [image/png, 978ร—536, 44 KB] marker instead of dumping every figure into the agent's context. A multi-cell run (run_all and friends) stays compact too: it flags which cells drew something with has_image and the agent fetches the ones that matter.

Databricks

Open the sidebar's Databricks section, pick a profile and cluster, and click Connect. Cellar binds spark (a Databricks Connect session) and w (a WorkspaceClient) into the kernel, ready for spark.read.table(...). A lazy Unity Catalog catalog > schema > table browser lets you click a table to drop a real, editable query cell into the notebook. Auth uses the SDK's own ~/.databrickscfg profiles (PAT or OAuth) - no extra CLI required. The connected view shows the cluster name and connection status; if a session goes idle or drops, a Reconnect button restores it against the same cluster you already chose. If instead your saved profile sign-in has expired (a databricks-cli or OAuth profile whose refresh token died), Cellar shows the exact databricks auth login --profile <name> command to run in a terminal - that credential lives in the CLI's own store, so a browser sign-in cannot fix it, and Cellar won't offer a dead-end sign-in button. Your own code in the kernel gets the same connection: a connected notebook carries DATABRICKS_CLUSTER_ID, so a bare DatabricksSession.builder.getOrCreate() in your library hands back the session you already have rather than asking for a cluster - and if this machine's ~/.databrickscfg marks no profile as the default (what makes a bare WorkspaceClient() fail with "cannot configure default credentials" while Cellar's own spark keeps working), the panel says so and offers the exact databricks auth switch --profile <name> command for each profile you could pick, instead of choosing one for you. Disconnect ends that notebook's session and leaves you signed in; Log out (the quiet button under it) also signs you out - it disconnects every notebook app-wide and clears the sign-in Cellar itself cached, so the next connect authenticates again. It only ever deletes what Cellar's own browser sign-in minted: your ~/.databrickscfg profiles, keyring entries and the databricks CLI's own token cache are left untouched, and the panel tells you afterwards exactly what was cleared. Agents can see and query the connection too, can restore a dropped session or connect to a cluster you point them at, and can read whether the Databricks runtime is advertised and switch it on or off (the same preference the Runtime card holds, applied the same way - by restarting the kernel, which clears its variables) - but they never start compute, drive the OAuth browser or sign you out, so a stopped cluster, a browser sign-in and a log out stay your call. While a query runs, a live Databricks-style progress bar shows overall task completion across stages and clears when the query finishes (queries faster than a couple of seconds skip the bar, just like Databricks).

Upload notebook to workspace (its own Upload card, between the Cluster and Runtime cards, while connected) copies the notebook you have open into your own Databricks folder - /Users/<you>/, resolved from the connected identity, never a path you type - as a real Databricks notebook with its cells intact, not a flattened .py script. A .py jupytext or Databricks-source notebook uploads as a proper .ipynb too. Optional Prefix and Postfix fields wrap the notebook's own name, and both take date tokens - {YYYY-MM-DD}, {YYYYMMDD}, {YYYY-MM}, {YYYYMM}, {YYYY}, {MM}, {DD}, expanded against your local date - so analysis.ipynb can land as 2026-08-05_analysis or analysis_20260805 without renaming the file first. Each field has a dropdown beside it listing the tokens next to what they become today; picking one inserts it into that field at the caret, beside whatever you have typed (the braces are required), and a brace that isn't one of them is called out as a warning instead of silently uploading as written. The panel previews the resolved name as you type, and that preview is exactly what the workspace receives; an affix that would move the upload out of your own folder (a slash, a backslash or a control character) is refused with the reason on screen rather than quietly cleaned up. Your last-used pattern is remembered per project, and leaving both empty uploads exactly as it always did. Stamp every project the same way by setting Settings โ†’ Default Databricks upload name once - a project that has a prefix or postfix of its own always keeps it, and the default only fills in for one you never set (clear a project's field to opt it out). It reuses the connection you already made, so there is no second sign-in, and it only writes workspace files: nothing here starts, stops or restarts a cluster. Nothing is ever clobbered silently - if a notebook is already at that path, Cellar writes nothing and asks you to confirm a Replace first, and a path occupied by something that is not a notebook is refused outright. When it lands, the panel shows the workspace path plus an Open in Databricks link. A notebook so large it exceeds what a workspace import accepts is refused with the fix - clear its outputs, which are what make it that big.

A SQL cell holds a raw query that Cellar runs against that spark session and renders as an interactive grid. Its result is bound to _sql_df in the kernel, so a following Python cell can chain off the last SQL result. _sql_df is last-write-wins across the notebook, so with more than one SQL cell, name the binding by opening the cell with a -- >> sales_df line:

-- >> sales_df
SELECT region, sum(amount) AS amount FROM sales GROUP BY region

The result then binds to sales_df (and still to _sql_df), and no later SQL cell clobbers it. The line is a plain SQL comment, so the cell still reads as SQL anywhere else; it must be the first non-blank line, and the name must be a valid Python variable name that isn't already Cellar's (spark, w) - an unusable name fails the cell with a message saying why. Staleness knows about the binding: edit the query and the Python cells using its result go stale.

Requirements

  • Node 18+

  • Python 3.9+

  • uv on your PATH (Cellar uses it for all venv and package management)

  • Optional: the claude CLI on your PATH - only chat cells use it, and only when you run one

  • Optional: the Mojo toolchain in the project venv (uv pip install max) - only Mojo cells use it, and only when you run one

Or just Docker - see Run with Docker for a zero-prerequisite, reproducible-env alternative.

Cellar runs with zero configuration - it discovers your home directory, its own install location, and its ports at runtime. A folder keeps the address it was given: the app and MCP ports are remembered per project and re-used on the next launch whenever they are still free, so a bookmarked tab survives a restart (Cellar yields to whatever else holds a port rather than reclaiming it, and says so when one has to move). For the clone-to-run steps, kernel/venv resolution, and the full environment-variable reference (all optional, with defaults), see docs/SETUP.md.

Testing

Two layers, run with:

npm run test
npm run test:e2e
  • Unit tests (tests/unit/) guard the pure server logic. The crown jewel is clean-on-save: idempotent, git-clean round-trips, the metadata allowlist, memory-address scrubbing, and the notebook model (stable cell IDs, add/move/delete, duplicate-ID re-keying). These are the must-pass gate and run on every PR in CI.

  • E2E (tests/e2e/) drives the real cellar launcher against a scratch workspace in a browser. The smoke spec (smoke.spec.ts) runs 6*7, asserts 42 renders, and confirms the saved .ipynb is valid; the rest cover behavior only the full stack can show (e.g. kernel-watchdog-probe.spec.ts proves a long, silent cell is never aborted for being silent). They need the full kernel runtime (uv + python3 + the cached host-venv), so they're a local, best-effort layer that skips itself when that runtime is absent. CI doesn't provide the kernel runtime, so they run locally, not there - the unit suite is what gates merges. Install the browser once with npx playwright install chromium. npm run test:e2e rebuilds the app first when build/ is older than src/ (the specs serve the production build, so a stale one would silently test uncompiled code) and runs two spec files at a time, ~2.5 min for the full suite.

Contributing

Contributions are welcome - see CONTRIBUTING.md for dev setup, the CI gate (npm run build && npm run check && npm run test), and the project's conventions. Please also read the Code of Conduct.

Found a security issue? Please report it privately - see SECURITY.md (Cellar runs an arbitrary-code-execution kernel, so this matters).

See CHANGELOG.md for what changed in each release (it's generated from the git history by git-cliff - never hand-edited; run make changelog to regenerate), or the Releases page.

License

Released under the MIT License. Some editor syntax palettes were ported in from other open-source projects; see THIRD-PARTY.md for their notices.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityActive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Control Protocol (MCP) server that enables remote programmatic control of Jupyter notebooks, allowing AI assistants and applications to create, edit, and execute notebook cells via SSE protocol.
    -
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI agents to interact with Jupyter notebooks via MCP tools for querying, modifying, executing, and setting up notebooks, with state preservation and real-time collaboration.
    4
    44
    Apache 2.0
  • F
    license
    Not graded
    quality
    C
    maintenance
    An MCP server that enables AI agents to create, read, edit, and manage Jupyter Notebook files programmatically, overcoming limitations in Cursor's native notebook support.
    161
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fbereilh/cellar'

If you have feedback or need assistance with the MCP directory API, please join our Discord server