Pretzel AI

Pretzel AI

Pretzel AI · Coding · Productivity

Pretzel AI is an open source Jupyter notebook fork that adds AI code completion, inline editing and a chat sidebar. It runs on your existing notebooks, extensions and keybindings.

Interface preview of Pretzel AI

About Pretzel AI

What Is Pretzel AI

Pretzel AI is a fork of Jupyter built by a small Y Combinator team that wanted the notebook to feel like a modern code editor. Everything JupyterLab does is still there, with AI layered on top: suggestions while you type, a prompt box that rewrites the current cell, and a sidebar for questions about the code in front of you.

The selling point is that nothing in your setup has to change. Notebook files, config, keybindings and extensions carry over, so the move costs one install command and one launch command. There's no new file format to adopt and no migration project.

The tradeoff is pace. The last PyPI release, 4.2.11, shipped in August 2024, and the founders have since moved on to Cord, a separate cloud coding agent. Commercial hosting also runs into the AGPLv3 license.

Getting Started

  1. Install the package with pip install pretzelai, or open the free hosted version at pretzelai.app if you'd rather skip local setup.
  2. Run pretzel lab in a terminal. The server prints a local URL, and the notebook opens in your browser.
  3. Type in any cell and wait about a second. An inline completion appears, and Tab accepts it.
  4. Press Cmd+K on macOS or Ctrl+K on Windows and Linux to open the AI prompt. Describe the change, then accept or reject the result.
  5. Open Settings, then Pretzel AI Settings, to connect OpenAI, Anthropic, Groq, Azure or Ollama if you want to use your own key.

Product Information

A quick look at Pretzel AI's pricing, supported platforms, and performance.

Free PlanYes
Paid Plans$0
PlatformWeb browser on Windows, macOS and Linux
DeveloperPretzel AI
CategoryCoding · Productivity
Release DateMar 2024
Latest UpdatedAug 2024
Website VisitsN/A
Website Global Rank11.5M
API AvailabilityNo

Best for

The users, tasks, and scenarios where this tool fits best.

Users

  • Data analysts who spend the day in a Jupyter notebook
  • Students learning pandas or NumPy
  • Python developers who move between a notebook and an editor

Tasks

  • Writing plotting code for a dataframe
  • Fixing a failed cell
  • Refactoring a function
  • Searching a long notebook

Scenarios

  • Ad hoc analysis on a laptop with no cloud account
  • Teaching a workshop
  • Offline or regulated work

Key features

Inline completions while you type

Start typing and a suggestion lands after roughly a second. Tab takes it. The default engine is Mistral's Codestral, a fast model tuned for code completion, and settings let you point it elsewhere. This is the feature you notice first because it fires without a keystroke.

Ask AI for cell edits

Cmd+K or Ctrl+K opens a prompt box over the current cell. Existing code gets edited in place, highlighted code limits the scope, and a prompt starting with inject or ij asks for new lines instead of a rewrite. Typing @ pulls up variables in memory, so you can reference a real dataframe by name.

AI sidebar with notebook context

Ctrl+Cmd+B opens a chat panel that sees the active cell plus relevant code from the rest of the notebook. Ask it to explain a block, find the function that drops outliers, or write a query against a frame. Answers come back as code you can insert.

One-click error fixing

When a cell raises an exception, a Fix Error with AI button appears in the corner of the output. Click it and Pretzel AI reads the traceback along with the cell, then suggests a correction. You keep the final say on whether to apply it.

Drop-in Jupyter compatibility

This is a fork of Jupyter, not a wrapper around it. Existing .ipynb files open unchanged, and Jupyter config, settings, keybindings and extensions work out of the box. A team that already runs JupyterLab can test it on one machine without a migration.

Bring your own model

The hosted server needs no configuration, but settings let you route chat and completion to OpenAI, Anthropic, Groq, Azure or Ollama with your own keys. Requests then travel from your machine to the provider. That path is the reason local models matter here for anyone who can't send code to a third party.

Free hosted tier and package install

The browser version at pretzelai.app is free and creates an account from your email address. The pip package costs nothing too, and a Dockerfile covers Windows setups where build tools get in the way. Both routes reach the same interface.

Pros and cons

Pros

  • Free on both paths, hosted or local, with no paid tier and no seat count to manage.
  • AI code completion and cell edits feel native to the notebook instead of bolted on.
  • Existing notebooks, extensions and keybindings keep working, so trying it costs almost nothing.
  • Model choice stays with you, including local models through Ollama.
  • No code is stored by the hosted AI server, and prompt telemetry can be switched off.

Cons

  • Version 4.2.11 shipped in August 2024 and the team now focuses on Cord, so fixes and roadmap items like SQL support or real-time collaboration have stalled.
  • The AGPLv3 license makes it awkward to host a modified build as a paid service.
  • Answer quality tracks the model you connect, and the default setup sends prompts through Pretzel's server unless you add your own key.
  • There's no collaborative editing and no standalone SQL IDE yet, so teams that need either still run a second tool.

Frequently asked questions

Yes. The hosted version at pretzelai.app costs nothing and the PyPI package installs at no charge. There's no paid plan to upgrade to. The only bill would come from a model provider if you connect your own API key.