Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

docs: replace index.md with readme (#2830)

Akshay Agrawal4172530c3f10
diff --git a/README.md b/README.md
index 87504f640d..3612bc8da4 100644
--- a/README.md
+++ b/README.md
@@ -172,7 +172,7 @@ For example, here's an embedding visualizer made in marimo
<img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/embedding.gif" width="700px" />
Check out our [docs](https://docs.marimo.io),
-the [`examples/`](examples/) folder, and our [gallery](https://marimo.io/@public) to learn more.
+the [`examples/`](examples/) folder, and our [gallery](https://marimo.io/gallery) to learn more.
<table border="0">
<tr>
diff --git a/docs/index.md b/docs/index.md
index 36ced5009b..0e3186e3ae 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -2,12 +2,13 @@
<img src="_static/marimo-logotype-thick.svg" width="210px">
</p>
-**marimo** is a reactive notebook for Python that models notebooks as dataflow
-graphs. Run a cell or interact with a UI element, and marimo automatically runs
-affected cells (or [marks them as stale](/guides/reactivity.md#runtime-configuration)),
-keeping code and outputs consistent and preventing bugs before they happen.
-Every marimo notebook is stored as pure Python, executable as a script, and
-deployable as an app.
+# marimo
+
+marimo is a reactive Python notebook: run a cell or interact with a UI
+element, and marimo automatically runs dependent cells (or [marks them as
+stale](/guides/reactivity.md#runtime-configuration)), keeping code and outputs
+consistent and preventing bugs before they happen. Every marimo notebook is
+stored as pure Python, executable as a script, and deployable as an app.
```{admonition} Built from the ground up
:class: tip
@@ -44,51 +45,253 @@ conda install -c conda-forge marimo && marimo tutorial intro
Developer experience is core to marimo, with an emphasis on
reproducibility, maintainability, composability, and shareability.
-**Highlights**.
+## Highlights
-- 🚀 **batteries-included:** replaces `jupyter`, `streamlit`, `jupytext`, `ipywidgets`, `papermill`, & more
-- ⚡️ **reactive**: run a cell, and marimo reactively [runs all dependent cells](https://docs.marimo.io/guides/reactivity.html) or <a href="#expensive-notebooks">marks them as stale</a>
-- 🖐️ **interactive:** [bind sliders, tables, plots, and more](https://docs.marimo.io/guides/interactivity.html) to Python — no callbacks required
-- 🔬 **reproducible:** [no hidden state](https://docs.marimo.io/guides/reactivity.html#no-hidden-state), deterministic execution, [built-in package management](https://docs.marimo.io/guides/editor_features/package_management.html)
-- 🏃 **executable:** [execute as a Python script](https://docs.marimo.io/guides/scripts.html), parametrized by CLI args
-- 🛜 **shareable**: [deploy as an interactive web app](https://docs.marimo.io/guides/apps.html) or [slides](https://docs.marimo.io/guides/apps.html#slides-layout), [run in the browser via WASM](https://docs.marimo.io/guides/wasm.html)
+- 🚀 **batteries-included:** replaces `jupyter`, `streamlit`, `jupytext`, `ipywidgets`, `papermill`, and more
+- ⚡️ **reactive**: run a cell, and marimo reactively [runs all dependent cells](/guides/reactivity.md) or <a href="#expensive-notebooks">marks them as stale</a>
+- 🖐️ **interactive:** [bind sliders, tables, plots, and more](/guides/interactivity.md) to Python — no callbacks required
+- 🔬 **reproducible:** [no hidden state](/guides/reactivity.md#no-hidden-state), deterministic execution, [built-in package management](/guides/editor_features/package_management.md)
+- 🏃 **executable:** [execute as a Python script](/guides/scripts.md), parametrized by CLI args
+- 🛜 **shareable**: [deploy as an interactive web app](guides/apps.md) or [slides](/guides/apps.md#slides-layout), [run in the browser via WASM](/guides/wasm.md)
- 🛢️ **designed for data**: query dataframes and databases [with SQL](/guides/working_with_data/sql.md), filter and search [dataframes](/guides/working_with_data/dataframes.md)
- 🐍 **git-friendly:** notebooks are stored as `.py` files
-- ⌨️ **a modern editor**: [GitHub Copilot](https://docs.marimo.io/guides/editor_features/ai_completion.html#github-copilot), [AI assistants](https://docs.marimo.io/guides/editor_features/ai_completion.html#using-ollama), vim keybindings, variable explorer, and [more](https://docs.marimo.io/guides/editor_features/index.html)
+- ⌨️ **a modern editor**: [GitHub Copilot](/guides/editor_features/ai_completion.md#github-copilot), [AI assistants](/guides/editor_features/ai_completion.md#using-ollama), vim keybindings, variable explorer, and [more](/guides/editor_features/index.md)
+
+## A reactive programming environment
+
+marimo guarantees your notebook code, outputs, and program state are consistent. This [solves many problems](/faq.md#faq-problems) associated with traditional notebooks like Jupyter.
+
+**A reactive programming environment.**
+Run a cell and marimo _reacts_ by automatically running the cells that
+reference its variables, eliminating the error-prone task of manually
+re-running cells. Delete a cell and marimo scrubs its variables from program
+memory, eliminating hidden state.
+
+<img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/reactive.gif" width="700px" />
+
+<a name="expensive-notebooks"></a>
+
+**Compatible with expensive notebooks.** marimo lets you [configure the runtime
+to be
+lazy](/guides/configuration/runtime_configuration.md),
+marking affected cells as stale instead of automatically running them. This
+gives you guarantees on program state while preventing accidental execution of
+expensive cells.
+
+**Synchronized UI elements.** Interact with [UI
+elements](/guides/interactivity.md) like [sliders](/api/inputs/slider.md#slider),
+[dropdowns](/api/inputs/dropdown.md), [dataframe
+transformers](/api/inputs/dataframe.md), and [chat
+interfaces](/api/inputs/chat.md), and the cells that
+use them are automatically re-run with their latest values.
+
+<img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/readme-ui.gif" width="700px" />
+
+**Performant runtime.** marimo runs only those cells that need to be run by
+statically analyzing your code.
+
+**Dynamic markdown and SQL.** Use markdown to tell dynamic stories that depend on
+Python data. Or build [SQL](/guides/working_with_data/sql.md) queries
+that depend on Python values and execute them against dataframes, databases,
+CSVs, Google Sheets, or anything else using our built-in SQL engine, which
+returns the result as a Python dataframe.
+
+<img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/readme-sql-cell.png" width="700px" />
+
+Your notebooks are still pure Python, even if they use markdown or SQL.
+
+**Deterministic execution order.** Notebooks are executed in a deterministic
+order, based on variable references instead of cells' positions on the page.
+Organize your notebooks to best fit the stories you'd like to tell.
-> ⚡ marimo notebooks run automatically with interactions and code changes
+**Built-in package management.** marimo has built-in support for all major
+package managers, letting you install packages on import. marimo can even
+[serialize package
+requirements](/guides/editor_features/package_management.md#auto-add-inline-script-metadata-uv-only)
+in notebook files, and auto install them in
+[isolated venv sandboxes](/guides/editor_features/package_management.md#running-marimo-in-a-sandbox-environment-uv-only).
-<div align="center">
-<figure>
-<img src="/_static/readme-ui.gif"/>
-</figure>
-</div>
+**Batteries-included.** marimo comes with GitHub Copilot, AI assistants, Ruff
+code formatting, HTML export, fast code completion, a [VS Code
+extension](https://marketplace.visualstudio.com/items?itemName=marimo-team.vscode-marimo),
+an interactive dataframe viewer, and [many more](/guides/editor_features/index.md)
+quality-of-life features.
-> ✨ express yourself with markdown, LaTeX, tables, accordions, tabs, grids, and more
+## Quickstart
-<div align="center">
-<figure>
-<img src="/_static/outputs.gif"/>
-</figure>
-</div>
+**Installation.** In a terminal, run
-> 🔬 do reproducible science in an environment that makes your data tangible
+```bash
+pip install marimo # or conda install -c conda-forge marimo
+marimo tutorial intro
+```
+
+**Create notebooks.**
+
+Create or edit notebooks with
+
+```bash
+marimo edit
+```
-<div align="center">
-<figure>
-<img src="/_static/faq-marimo-ui.gif"/>
-</figure>
-</div>
+**Run apps.** Run your notebook as a web app, with Python
+code hidden and uneditable:
-> 🚀 deploy as interactive web apps
+```bash
+marimo run your_notebook.py
+```
+
+<img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/docs-model-comparison.gif" style="border-radius: 8px" width="450px" />
+
+**Execute as scripts.** Execute a notebook as a script at the
+command line:
+
+```bash
+python your_notebook.py
+```
-<div align="center">
-<figure>
-<img src="/_static/docs-intro-app.gif"/>
-</figure>
-</div>
+**Automatically convert Jupyter notebooks.** Automatically convert Jupyter
+notebooks to marimo notebooks with the CLI
+
+```bash
+marimo convert your_notebook.ipynb > your_notebook.py
+```
+
+or use our [web interface](https://marimo.io/convert).
+
+**Tutorials.**
+List all tutorials:
+
+```bash
+marimo tutorial --help
+```
+
+## Questions?
+
+See our [FAQ](/faq.md).
+
+## Learn more
+
+marimo is easy to get started with, with lots of room for power users.
+For example, here's an embedding visualizer made in marimo
+([video](https://marimo.io/videos/landing/full.mp4)):
+
+<img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/embedding.gif" width="700px" />
+
+Check out our [guides](/guides/index.md), our [example
+gallery](https://marimo.io/gallery), and our
+[`examples/`](https://github.com/marimo-team/marimo/tree/main/examples) on
+GitHub to learn more.
+
+<table border="0">
+ <tr>
+ <td>
+ <a target="_blank" href="/guides/overview.md">
+ <img src="/_static/reactive.gif" style="max-height: 150px; width: auto; display: block" />
+ </a>
+ </td>
+ <td>
+ <a target="_blank" href="/api/inputs/index.md">
+ <img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/readme-ui.gif" style="max-height: 150px; width: auto; display: block" />
+ </a>
+ </td>
+ <td>
+ <a target="_blank" href="/guides/working_with_data/plotting.md">
+ <img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/docs-intro.gif" style="max-height: 150px; width: auto; display: block" />
+ </a>
+ </td>
+ <td>
+ <a target="_blank" href="/api/layouts/index.md">
+ <img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/outputs.gif" style="max-height: 150px; width: auto; display: block" />
+ </a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a target="_blank" href="/guides/overview.md"> Tutorial </a>
+ </td>
+ <td>
+ <a target="_blank" href="/api/inputs/index.md"> Inputs </a>
+ </td>
+ <td>
+ <a target="_blank" href="/guides/working_with_data/plotting.md"> Plots </a>
+ </td>
+ <td>
+ <a target="_blank" href="/api/layouts/index.md"> Layout </a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a target="_blank" href="https://marimo.app/l/c7h6pz">
+ <img src="https://marimo.io/shield.svg"/>
+ </a>
+ </td>
+ <td>
+ <a target="_blank" href="https://marimo.app/l/0ue871">
+ <img src="https://marimo.io/shield.svg"/>
+ </a>
+ </td>
+ <td>
+ <a target="_blank" href="https://marimo.app/l/lxp1jk">
+ <img src="https://marimo.io/shield.svg"/>
+ </a>
+ </td>
+ <td>
+ <a target="_blank" href="https://marimo.app/l/14ovyr">
+ <img src="https://marimo.io/shield.svg"/>
+ </a>
+ </td>
+ </tr>
+</table>
+
+## Contributing
+
+We appreciate all contributions! You don't need to be an expert to help out.
+Please see [CONTRIBUTING.md](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md) for more details on how to get
+started.
+
+> Questions? Reach out to us [on Discord](https://marimo.io/discord?ref=docs).
+
+## Community
+
+We're building a community. Come hang out with us!
+
+- 🌟 [Star us on GitHub](https://github.com/marimo-team/marimo)
+- 💬 [Chat with us on Discord](https://marimo.io/discord?ref=docs)
+- 📧 [Subscribe to our Newsletter](https://marimo.io/newsletter)
+- ☁️ [Join our Cloud Waitlist](https://marimo.io/cloud)
+- ✏️ [Start a GitHub Discussion](https://github.com/marimo-team/marimo/discussions)
+- 🐦 [Follow us on Twitter](https://twitter.com/marimo_io)
+- 🕴️ [Follow us on LinkedIn](https://www.linkedin.com/company/marimo-io)
+
+## Inspiration ✨
+
+marimo is a **reinvention** of the Python notebook as a reproducible, interactive,
+and shareable Python program, instead of an error-prone JSON scratchpad.
+
+We believe that the tools we use shape the way we think — better tools, for
+better minds. With marimo, we hope to provide the Python community with a
+better programming environment to do research and communicate it; to experiment
+with code and share it; to learn computational science and teach it.
+
+Our inspiration comes from many places and projects, especially
+[Pluto.jl](https://github.com/fonsp/Pluto.jl),
+[ObservableHQ](https://observablehq.com/tutorials), and
+[Bret Victor's essays](http://worrydream.com/). marimo is part of
+a greater movement toward reactive dataflow programming. From
+[IPyflow](https://github.com/ipyflow/ipyflow), [streamlit](https://github.com/streamlit/streamlit),
+[TensorFlow](https://github.com/tensorflow/tensorflow),
+[PyTorch](https://github.com/pytorch/pytorch/tree/main),
+[JAX](https://github.com/google/jax), and
+[React](https://github.com/facebook/react), the ideas of functional,
+declarative, and reactive programming are transforming a broad range of tools
+for the better.
+
+<p align="right">
+ <img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/marimo-logotype-horizontal.png" height="200px">
+</p>
-<h3>Contents</h3>
+<h3>Table of Contents</h3>
```{eval-rst}
.. toctree::
@@ -110,6 +313,7 @@ reproducibility, maintainability, composability, and shareability.
:maxdepth: 2
GitHub <https://github.com/marimo-team/marimo>
+ Gallery <https://marimo.io/gallery>
Discord <https://marimo.io/discord?ref=docs>
Newsletter <https://marimo.io/newsletter>
Twitter <https://twitter.com/marimo_io>