Installation
marimo works on Linux, macOS, and Windows, requiring Python 3.10 or higher. Choose your preferred installation method below.Basic installation
Recommended installation
For the full marimo experience with SQL, AI features, and formatting:- 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:duckdb>=1.0.0- Fast SQL query enginepolars[pyarrow]>=1.9.0- High-performance dataframessqlglot[c]>=26.2.0- SQL parsing and transpilation
Sandbox environments
Run notebooks in isolated environments:pyzmq>=27.1.0- IPC communication for sandbox kernelsuv>=0.9.21- Fast Python package installer for sandbox management
Language Server Protocol
Advanced editor features like go-to-definition and refactoring:python-lsp-server>=1.13.0- LSP implementationpython-lsp-ruff>=2.0.0- Ruff integration for LSP
Model Context Protocol
Integrate with MCP servers for AI context:mcp>=1.0.0- Model Context Protocol clientpydantic>2- Data validation
System requirements
Python version
marimo requires Python 3.10 or higher. Check your version:- 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:- Install the marimo extension from the VS Code marketplace
- Open any
.pyfile containing a marimo notebook - Use the marimo view to edit interactively
Other editors
Edit marimo notebooks in any text editor:--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:Install pixi
marimo uses pixi for development:
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:- Look for the URL in the terminal output (usually
http://localhost:2718) - Open it manually in your browser
- 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