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: reorganize guides (#2632)

Akshay Agrawala1816e307ef3
diff --git a/README.md b/README.md
index c9d780ce59..37815b3b2a 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ and deployable as apps.
- 🔬 **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)
-- 🛢️ **designed for data**: query dataframes and databases [with SQL](https://docs.marimo.io/guides/sql.html), filter and search [dataframes](https://docs.marimo.io/guides/dataframes.html#displaying-dataframes)
+- 🛢️ **designed for data**: query dataframes and databases [with SQL](https://docs.marimo.io/guides/working_with_data/sql.html), filter and search [dataframes](https://docs.marimo.io/guides/working_with_data/dataframes.html)
- 🐍 **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)
@@ -82,7 +82,7 @@ use them are automatically re-run with their latest values.
statically analyzing your code.
**Dynamic markdown and SQL.** Use markdown to tell dynamic stories that depend on
-Python data. Or build [SQL](https://docs.marimo.io/guides/sql.html) queries
+Python data. Or build [SQL](https://docs.marimo.io/guides/working_with_data/sql.html) 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.
@@ -185,7 +185,7 @@ the [`examples/`](examples/) folder, and our [gallery](https://marimo.io/@public
</a>
</td>
<td>
- <a target="_blank" href="https://docs.marimo.io/guides/plotting.html">
+ <a target="_blank" href="https://docs.marimo.io/guides/working_with_data/plotting.html">
<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>
@@ -203,7 +203,7 @@ the [`examples/`](examples/) folder, and our [gallery](https://marimo.io/@public
<a target="_blank" href="https://docs.marimo.io/api/inputs/index.html"> Inputs </a>
</td>
<td>
- <a target="_blank" href="https://docs.marimo.io/guides/plotting.html"> Plots </a>
+ <a target="_blank" href="https://docs.marimo.io/guides/working_with_data/plotting.html"> Plots </a>
</td>
<td>
<a target="_blank" href="https://docs.marimo.io/api/layouts/index.html"> Layout </a>
diff --git a/README_Chinese.md b/README_Chinese.md
index 8f05e9a2dd..76f16d19ee 100644
--- a/README_Chinese.md
+++ b/README_Chinese.md
@@ -32,7 +32,7 @@
- 🔬 **可复现:** [无隐藏状态](https://docs.marimo.io/guides/reactivity.html#no-hidden-state),确定性执行
- 🏃‍♂️ **可执行:** [作为 Python 脚本执行](https://docs.marimo.io/guides/scripts.html),通过命令行调整参数
- 🛜 **可分享**: [部署为交互式 Web 应用](https://docs.marimo.io/guides/apps.html) 或 [幻灯片](https://docs.marimo.io/guides/apps.html#slides-layout),[通过 WASM 在浏览器中运行](https://docs.marimo.io/guides/wasm.html)
-- 🛢️ **为数据设计**: 使用 [SQL](https://docs.marimo.io/guides/sql.html) 查询数据框和数据库,过滤和搜索 [数据框](https://docs.marimo.io/guides/dataframes.html#displaying-dataframes)
+- 🛢️ **为数据设计**: 使用 [SQL](https://docs.marimo.io/guides/working_with_data/sql.html) 查询数据框和数据库,过滤和搜索 [数据框](https://docs.marimo.io/guides/working_with_data/dataframes.html)
- 🐍 **支持 Git:** 笔记本以 `.py` 文件格式存储
- ⌨️ **现代编辑器**: GitHub Copilot、AI 助手、vim 快捷键、变量浏览器,和 [更多功能](https://docs.marimo.io/guides/editor_features/index.html)
@@ -63,7 +63,7 @@ Marimo 确保了您的代码、输出和程序的状态始的一致性,解决
**高效运行** 通过静态分析代码,marimo 只运行需要运行的单元。
-**动态的 Markdown 与 SQL** 使用 Markdown 编写 Python 代码的输出动态进行更新的文档。同时,使用内置 [SQL](https://docs.marimo.io/guides/sql.html) 引擎,可创建依赖于 Python 值的 SQL 查询,并针对数据框、数据库、CSV、Google Sheets 或其他任何内容执行查询,SQL 引擎会将结果返回为 Python 数据框。
+**动态的 Markdown 与 SQL** 使用 Markdown 编写 Python 代码的输出动态进行更新的文档。同时,使用内置 [SQL](https://docs.marimo.io/guides/working_with_data/sql.html) 引擎,可创建依赖于 Python 值的 SQL 查询,并针对数据框、数据库、CSV、Google Sheets 或其他任何内容执行查询,SQL 引擎会将结果返回为 Python 数据框。
<img src="https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/readme-sql-cell.png" width="700px" />
@@ -152,7 +152,7 @@ Marimo 很容易上手,为高级用户提供了很大的空间。 例如,这
</a>
</td>
<td>
- <a target="_blank" href="https://docs.marimo.io/guides/plotting.html">
+ <a target="_blank" href="https://docs.marimo.io/guides/working_with_data/plotting.html">
<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>
@@ -170,7 +170,7 @@ Marimo 很容易上手,为高级用户提供了很大的空间。 例如,这
<a target="_blank" href="https://docs.marimo.io/api/inputs/index.html"> 自定义输入 </a>
</td>
<td>
- <a target="_blank" href="https://docs.marimo.io/guides/plotting.html"> 自定义绘图 </a>
+ <a target="_blank" href="https://docs.marimo.io/guides/working_with_data/plotting.html"> 自定义绘图 </a>
</td>
<td>
<a target="_blank" href="https://docs.marimo.io/api/layouts/index.html"> 自定义布局 </a>
diff --git a/docs/guides/configuration/index.md b/docs/guides/configuration/index.md
index 049d151ec0..9c2990a682 100644
--- a/docs/guides/configuration/index.md
+++ b/docs/guides/configuration/index.md
@@ -6,9 +6,12 @@
:hidden:
runtime_configuration
+ theming
```
-marimo offers two types of configuration: User Configuration and App Configuration. Both can be easily managed through the Settings menu in the marimo editor.
+marimo offers two types of configuration: User Configuration and App
+Configuration. Both can be easily managed through the Settings menu in the
+marimo editor.
<img align="right" src="/_static/docs-app-config.png" width="300px"/>
diff --git a/docs/guides/theming.md b/docs/guides/configuration/theming.md
similarity index 100%
rename from docs/guides/theming.md
rename to docs/guides/configuration/theming.md
diff --git a/docs/guides/index.md b/docs/guides/index.md
index 1af5b9bc73..e9119a6f01 100644
--- a/docs/guides/index.md
+++ b/docs/guides/index.md
@@ -8,53 +8,47 @@
overview
reactivity
interactivity
- sql
- apps
- scripts
outputs
- dataframes
- plotting
+ working_with_data/index
editor_features/index
- theming
+ configuration/index
+ apps
+ scripts
best_practices/index
coming_from/index
integrating_with_marimo/index
state
wasm
exporting
- configuration/index
- troubleshooting
deploying/index
+ troubleshooting
```
-
These guides cover marimo's core concepts.
-| Guide | Description |
-| :----------------------------------- | :-------------------------------------------------- |
-| {doc}`overview` | An overview of basic concepts |
-| {doc}`reactivity` | How reactive execution works |
-| {doc}`interactivity` | Using interactive UI elements |
-| {doc}`sql` | Use SQL to query dataframes, databases, CSVs, etc. |
-| {doc}`apps` | Running notebooks as apps |
-| {doc}`scripts` | Running notebooks as scripts |
-| {doc}`outputs` | Markdown, plots, and other visual outputs |
-| {doc}`dataframes` | Working with dataframes |
-| {doc}`plotting` | Interactive and reactive plots |
-| {doc}`editor_features/index` | View variables, cell dependencies, errors, and more |
-| {doc}`theming` | Theming notebooks |
-| {doc}`best_practices/index` | Notebook best practices |
-| {doc}`coming_from/jupyter` | marimo for Jupyter users |
-| {doc}`coming_from/index` | Transitioning from other tools |
-| {doc}`integrating_with_marimo/index` | Rich displays of objects, custom UI plugins |
-| {doc}`state` | Mutable, reactive state |
-| {doc}`wasm` | Create notebooks in our online playground! |
-| {doc}`exporting` | Exporting notebooks to HTML and flat scripts |
-| {doc}`configuration/index` | User and app configuration |
-| {doc}`deploying/index` | Deploying marimo notebooks and apps |
-
```{admonition} Learn by doing!
:class: tip
Prefer a hands-on learning experience? marimo comes packaged with interactive
tutorials that you can launch with `marimo tutorial` at the command line.
```
+
+
+| Guide | Description |
+| :----------------------------------- | :----------------------------------------------------------- |
+| {doc}`overview` | An overview of basic concepts |
+| {doc}`reactivity` | How reactive execution works |
+| {doc}`interactivity` | Using interactive UI elements |
+| {doc}`outputs` | Creating markdown, plots, and other visual outputs |
+| {doc}`working_with_data/index` | Using SQL cells, no-code dataframe tools, and reactive plots |
+| {doc}`editor_features/index` | View variables, dataframe schemas, docstrings, and more |
+| {doc}`configuration/index` | Configure various settings |
+| {doc}`apps` | Running notebooks as apps |
+| {doc}`scripts` | Running notebooks as scripts |
+| {doc}`best_practices/index` | Best practices to help you get the most out of marimo |
+| {doc}`coming_from/index` | Transitioning from Jupyter and other tools |
+| {doc}`integrating_with_marimo/index` | Rich displays of objects, custom UI plugins |
+| {doc}`state` | Advanced: mutable reactive state |
+| {doc}`wasm` | Create notebooks in our online playground |
+| {doc}`exporting` | Exporting notebooks to HTML and flat scripts |
+| {doc}`deploying/index` | Deploying marimo notebooks and apps |
+| {doc}`troubleshooting` | Troubleshooting notebooks |
diff --git a/docs/guides/dataframes.md b/docs/guides/working_with_data/dataframes.md
similarity index 100%
rename from docs/guides/dataframes.md
rename to docs/guides/working_with_data/dataframes.md
diff --git a/docs/guides/working_with_data/index.md b/docs/guides/working_with_data/index.md
new file mode 100644
index 0000000000..8c47279992
--- /dev/null
+++ b/docs/guides/working_with_data/index.md
@@ -0,0 +1,21 @@
+# Working with data
+
+```{eval-rst}
+.. toctree::
+ :maxdepth: 2
+ :hidden:
+
+ sql
+ dataframes
+ plotting
+```
+
+These guides introduce you to marimo's features for working with data,
+including SQL cells, no-code dataframe transformation tools, and plots whose
+selections are automatically sent back to Python.
+
+| | |
+| :---------------- | :---------------------------------------------------- |
+| {doc}`sql` | Use SQL to query dataframes, databases, CSVs, etc. |
+| {doc}`dataframes` | Filter, search, and transform dataframes without code |
+| {doc}`plotting` | Send plot selections to Python |
diff --git a/docs/guides/plotting.md b/docs/guides/working_with_data/plotting.md
similarity index 100%
rename from docs/guides/plotting.md
rename to docs/guides/working_with_data/plotting.md
diff --git a/docs/guides/sql.md b/docs/guides/working_with_data/sql.md
similarity index 100%
rename from docs/guides/sql.md
rename to docs/guides/working_with_data/sql.md
diff --git a/docs/index.md b/docs/index.md
index 4863326b29..c9d720badb 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -52,7 +52,7 @@ reproducibility, maintainability, composability, and shareability.
- 🔬 **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)
-- 🛢️ **designed for data**: query dataframes and databases [with SQL](https://docs.marimo.io/guides/sql.html), filter and search [dataframes](https://docs.marimo.io/guides/dataframes.html#displaying-dataframes)
+- 🛢️ **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)
diff --git a/examples/third_party/plotly/scatter_map.py b/examples/third_party/plotly/scatter_map.py
index 481ae24504..42d19aad03 100644
--- a/examples/third_party/plotly/scatter_map.py
+++ b/examples/third_party/plotly/scatter_map.py
@@ -24,7 +24,7 @@ def __(mo):
r"""
# Selectable scatter map
- This example shows how to overlay a scatter plot on a map using `Plotly`, and make the plot reactive using [`mo.ui.plotly`](https://docs.marimo.io/guides/plotting.html#plotly) — select plots in the scatter
+ This example shows how to overlay a scatter plot on a map using `Plotly`, and make the plot reactive using [`mo.ui.plotly`](https://docs.marimo.io/guides/working_with_data/plotting.html#plotly) — select plots in the scatter
plot and get them back in Python!
"""
)