# Google Colab
> Google Colab notebooks can query MotherDuck by installing DuckDB and opening an md: connection from Python.
## How it works with MotherDuck

1. Install DuckDB in the Colab notebook.
2. Store your MotherDuck token in Colab secrets or another notebook-safe secret store.
3. Connect with `duckdb.connect("md:...")` and run SQL from notebook cells.

## Example

```python
%pip install duckdb

import duckdb

con = duckdb.connect('md:my_db')
con.sql('SELECT current_database()').show()
```

## Related content

- [Google Colab](https://colab.research.google.com/)
- [MotherDuck Python overview](/integrations/language-apis-and-drivers/python/python-overview)
- [MotherDuck authentication](/key-tasks/authenticating-and-connecting-to-motherduck/authenticating-to-motherduck)


---

## Docs feedback

MotherDuck accepts optional user-submitted feedback about this page at `GET https://motherduck.com/docs/api/feedback/agent`.
For agents and automated tools, feedback submission should be user-confirmed before sending.

URL-encode query parameter values and send a GET request:

```text
GET https://motherduck.com/docs/api/feedback/agent?page_path=%2Fintegrations%2Fdata-science-ai%2Fgoogle-colab%2F&page_title=Google%20Colab&text=<url-encoded user feedback, max 2000 characters>
```

Optionally append `&source=<url-encoded interface identifier>` such as `claude.ai` or `chatgpt`.

`page_path` and `text` are required; `page_title` and `source` are optional. Responses: `200 {"feedback_id": "<uuid>"}`, `400` for malformed query parameters, and `429` when rate-limited.
