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.

minor docs improvements (#694)

Akshay Agrawal4d55e473dbca
diff --git a/docs/getting_started/index.md b/docs/getting_started/index.md
index a16ef9e996..af2235e913 100644
--- a/docs/getting_started/index.md
+++ b/docs/getting_started/index.md
@@ -76,12 +76,15 @@ Create and edit notebooks with `marimo edit`.
marimo edit
```
-- create or edit a notebook with a given name:
+- marimo saves notebooks as Python files, which you can edit using:
```bash
marimo edit your_notebook.py
```
+(If `your_notebook.py` doesn't exist, marimo will create a blank notebook
+named `your_notebook.py`.)
+
## Apps
Use `marimo run` to serve your notebook as an app, with Python code hidden and
diff --git a/docs/guides/overview.md b/docs/guides/overview.md
index 0d8041b312..626c3993d3 100644
--- a/docs/guides/overview.md
+++ b/docs/guides/overview.md
@@ -4,6 +4,12 @@ marimo notebooks are **reactive**: they automatically react to your code
changes and UI interactions and keep your notebook up-to-date (like a
spreadsheet).
+```{admonition} Creating marimo notebooks
+
+Make sure to first read the [getting started](/getting_started/index.md) page,
+which teaches you how to install marimo and create notebooks.
+```
+
## Cells
A marimo notebook is made of small blocks of Python code called **cells**.
diff --git a/marimo/_tutorials/intro.py b/marimo/_tutorials/intro.py
index 78ad4d71a2..481f1ec466 100644
--- a/marimo/_tutorials/intro.py
+++ b/marimo/_tutorials/intro.py
@@ -1,7 +1,6 @@
-# Copyright 2024 Marimo. All rights reserved.
import marimo
-__generated_with = "0.1.69"
+__generated_with = "0.1.88"
app = marimo.App()
@@ -35,6 +34,17 @@ def __(mo, slider):
return
[email protected](hide_code=True)
+def __(mo):
+ mo.md(
+ """
+ Tip: This is a tutorial notebook. You can create your own notebooks
+ by entering `marimo edit` at the command line.
+ """
+ ).callout()
+ return
+
+
@app.cell(hide_code=True)
def __(mo):
mo.md(
@@ -202,7 +212,7 @@ def __(mo):
"""
## 3. marimo is just Python
- marimo cells parse Python (and only Python), and marimo programs are
+ marimo cells parse Python (and only Python), and marimo notebooks are
stored as pure Python files — outputs are _not_ included. There's no
magical syntax.
@@ -239,27 +249,9 @@ def __(mo):
@app.cell(hide_code=True)
def __(mo):
mo.md(
- """
- ## 5. The marimo editor
-
- Here are some tips to help you get started with the marimo editor.
- """
- )
- return
-
-
-def __(mo, tips):
- mo.accordion(tips)
- return
-
-
[email protected](hide_code=True)
-def __(mo):
- mo.md(
- """## 6. The `marimo` command-line tool
+ """## 5. The `marimo` command-line tool
- **Using the marimo editor.** Use
+ **Creating and editing notebooks.** Use
```
marimo edit
@@ -311,6 +303,24 @@ def __(mo):
return
[email protected](hide_code=True)
+def __(mo):
+ mo.md(
+ """
+ ## 6. The marimo editor
+
+ Here are some tips to help you get started with the marimo editor.
+ """
+ )
+ return
+
+
+def __(mo, tips):
+ mo.accordion(tips)
+ return
+
+
@app.cell
def __(mo):
mo.md("## Finally, a fun fact")