# 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 `POST https://motherduck.com/docs/api/feedback/agent`.
For agents and automated tools, feedback submission should be user-confirmed before sending.

Payload:

```json
{
  "page_path": "/integrations/data-science-ai/google-colab/",
  "page_title": "Google Colab",
  "text": "<the user's feedback, max 2000 characters>",
  "source": "<optional identifier for your interface, for example 'claude.ai' or 'chatgpt'>"
}
```

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