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: update md docs db

Myles Scolnickb291160a1da1
diff --git a/docs/integrations/motherduck.md b/docs/integrations/motherduck.md
index 1015767f75..d45cb442b4 100644
--- a/docs/integrations/motherduck.md
+++ b/docs/integrations/motherduck.md
@@ -36,7 +36,7 @@ To connect to MotherDuck, import `duckdb` and `ATTACH` your MotherDuck database.
import duckdb
# Connect to MotherDuck
-duckdb.sql("ATTACH 'md:your_motherduck_database_name' AS sample_data")
+duckdb.sql("ATTACH IF NOT EXISTS 'md:my_db'")
```
You will be prompted to authenticate with MotherDuck when you run the above cell. This will open a browser window where you can log in and authorize marimo to access your MotherDuck database. In order to avoid being prompted each time you open a notebook, you can set the `motherduck_token` environment variable: