Skip to main content

Installation

marimo works on Linux, macOS, and Windows, requiring Python 3.10 or higher. Choose your preferred installation method below.

Basic installation

After installation, verify it works:
This opens an interactive tutorial in your browser. For the full marimo experience with SQL, AI features, and formatting:
This includes:
  • SQL support - DuckDB, Polars, SQLGlot for SQL cells
  • Sandbox environments - Per-notebook isolated kernels with pyzmq and uv
  • AI completion - OpenAI integration for code generation
  • Code formatting - Ruff for auto-formatting
  • Jupyter export - nbformat for converting to/from Jupyter notebooks
  • Visualization - Altair for the data source viewer

Optional dependencies

marimo has several optional dependency groups you can install individually:

SQL support

Enable SQL cells with native database and dataframe querying:
Includes:
  • duckdb>=1.0.0 - Fast SQL query engine
  • polars[pyarrow]>=1.9.0 - High-performance dataframes
  • sqlglot[c]>=26.2.0 - SQL parsing and transpilation

Sandbox environments

Run notebooks in isolated environments:
Includes:
  • pyzmq>=27.1.0 - IPC communication for sandbox kernels
  • uv>=0.9.21 - Fast Python package installer for sandbox management
Use sandboxes with:

Language Server Protocol

Advanced editor features like go-to-definition and refactoring:
Includes:
  • python-lsp-server>=1.13.0 - LSP implementation
  • python-lsp-ruff>=2.0.0 - Ruff integration for LSP

Model Context Protocol

Integrate with MCP servers for AI context:
Includes:
  • mcp>=1.0.0 - Model Context Protocol client
  • pydantic>2 - Data validation

System requirements

Python version

marimo requires Python 3.10 or higher. Check your version:
Supported versions:
  • Python 3.10
  • Python 3.11
  • Python 3.12
  • Python 3.13
  • Python 3.14

Operating systems

marimo runs on:
  • Linux - All major distributions
  • macOS - Intel and Apple Silicon
  • Windows - Windows 10 and later
Some optional dependencies like chdb are not available on Windows.

Browser requirements

marimo’s editor runs in your web browser. Supported browsers:
  • Chrome / Chromium (recommended)
  • Firefox
  • Safari
  • Edge

Editor integrations

VS Code extension

Edit marimo notebooks directly in VS Code:
  1. Install the marimo extension from the VS Code marketplace
  2. Open any .py file containing a marimo notebook
  3. Use the marimo view to edit interactively

Other editors

Edit marimo notebooks in any text editor:
The --watch flag automatically reloads the notebook when you save changes in your external editor.

Development installation

To contribute to marimo or run the latest development version:
1

Clone the repository

2

Install pixi

marimo uses pixi for development:
3

Set up the environment

4

Build frontend and backend

5

Run in development mode

See CONTRIBUTING.md for detailed development setup.

Verifying installation

Check that marimo is installed correctly:

Upgrading marimo

Keep marimo up to date:

Uninstalling

Remove marimo from your system:

Troubleshooting

Port already in use

If port 2718 is already in use:

Import errors

If you see import errors for optional dependencies:

Browser doesn’t open

marimo should automatically open in your browser. If it doesn’t:
  1. Look for the URL in the terminal output (usually http://localhost:2718)
  2. Open it manually in your browser
  3. Or disable auto-open: marimo edit --no-browser

Permission errors

On some systems you may need to install in user mode:

Next steps

Quickstart

Create your first marimo notebook

Key concepts

Learn how marimo notebooks work