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: minor grammatical corrections to Marimo SQL tutorial. (#8258)

Greg Wilsone9034f8d524c
diff --git a/marimo/_tutorials/sql.py b/marimo/_tutorials/sql.py
index 1d79b39c23..9f6c63849c 100644
--- a/marimo/_tutorials/sql.py
+++ b/marimo/_tutorials/sql.py
@@ -121,8 +121,8 @@ def _(mo):
DataFrame (if you don't). One of them must be installed in order to
interact with the SQL result.
- The SQL statement itself is an formatted string (f-string), so this
- means they can contain any valid Python code, such as the values of UI
+ The SQL statement itself is a formatted string (f-string), which
+ means it can contain any valid Python code, such as the values of UI
elements. This means your SQL statement and results can be reactive! 🚀
""")
return
@@ -371,7 +371,7 @@ def _(mo):
With a bit of boilerplate, you can even read and write to **Postgres**, and join Postgres tables with dataframes in the same query. For a full list of supported data sources, check out the [duckdb extensions](https://duckdb.org/docs/extensions/overview) and our [example notebook on duckdb connections](https://github.com/marimo-team/marimo/blob/main/examples/sql/duckdb_connections.**py**).
- For this example, we will query an HTTP endpoint of a csv.
+ For this example, we will query an HTTP endpoint for a CSV.
""")
return
diff --git a/tests/_convert/markdown/snapshots/sql.md.txt b/tests/_convert/markdown/snapshots/sql.md.txt
index 96d42e0b28..6b9b581504 100644
--- a/tests/_convert/markdown/snapshots/sql.md.txt
+++ b/tests/_convert/markdown/snapshots/sql.md.txt
@@ -102,8 +102,8 @@ resulting Polars DataFrame (if you have `polars` installed) or a Pandas
DataFrame (if you don't). One of them must be installed in order to
interact with the SQL result.
-The SQL statement itself is an formatted string (f-string), so this
-means they can contain any valid Python code, such as the values of UI
+The SQL statement itself is a formatted string (f-string), which
+means it can contain any valid Python code, such as the values of UI
elements. This means your SQL statement and results can be reactive! 🚀
<!---->
## Querying dataframes with SQL
@@ -275,7 +275,7 @@ SELECT * FROM read_parquet('path/to/example.parquet');
With a bit of boilerplate, you can even read and write to **Postgres**, and join Postgres tables with dataframes in the same query. For a full list of supported data sources, check out the [duckdb extensions](https://duckdb.org/docs/extensions/overview) and our [example notebook on duckdb connections](https://github.com/marimo-team/marimo/blob/main/examples/sql/duckdb_connections.**py**).
-For this example, we will query an HTTP endpoint of a csv.
+For this example, we will query an HTTP endpoint for a CSV.
```sql {.marimo query="cars"}
-- Download a CSV and create an in-memory table; this is optional.