# Getting started

Python is a first-class citizen in Quadratic that integrates seamlessly with the spreadsheet. Below is a quick start to get going with Python in Quadratic.&#x20;

## Quick start

1. Select the cell where you want to write Python code.&#x20;

<figure><img src="/files/kObSJ7iiZYOc3Pn6I8fG" alt=""><figcaption></figcaption></figure>

1. Press `/` to bring up the cell type menu. Select Python.

<figure><img src="/files/Ga9ZoC6TYiPuKhFD0XE7" alt=""><figcaption></figcaption></figure>

3. Write Python in the code editor. The last line of code is returned to the sheet at the cell position.

<figure><img src="/files/i09CkH6rsI0ZPayLrN64" alt=""><figcaption></figcaption></figure>

## Learn more

The following is a list of essential information for learning how Python works in Quadratic.&#x20;

1. [Reference cells](/python/reference-cells.md) - get data from the sheet into Python with cell references&#x20;
2. [Return data to the sheet](/python/return-data-to-the-sheet.md) - return Python outputs from code to the sheet&#x20;
3. [Import packages](/python/packages.md) - import packages for use in your Python code&#x20;
4. [Make API requests](/python/make-an-api-request.md) - use the Requests library to query APIs
5. [Visualize data](/python/charts-visualizations.md) - turn your data into beautiful charts and graphs with Plotly&#x20;

The most common starting point is [learning how to reference spreadsheet cells from Python in Quadratic.](/python/reference-cells.md)&#x20;

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td></td><td>Learn how to: <br><span data-gb-custom-inline data-tag="emoji" data-code="1f449">👉</span> <strong>Reference cells in the sheet from Python</strong></td><td></td><td><a href="/pages/JvPShV6XX5kbDAKxqszy">/pages/JvPShV6XX5kbDAKxqszy</a></td></tr><tr><td><p></p><p>Learn how to: <br><span data-gb-custom-inline data-tag="emoji" data-code="1f4e5">📥</span> <strong>Display data in the sheet from Python</strong></p></td><td></td><td></td><td><a href="/pages/BHGbZPBfj9EfsLlCvLUg">/pages/BHGbZPBfj9EfsLlCvLUg</a></td></tr><tr><td></td><td>Learn how to: <br><span data-gb-custom-inline data-tag="emoji" data-code="1f4c8">📈</span> <strong>Ingest data using Python</strong> </td><td></td><td><a href="/pages/gonxIBjOhzIg4gQLfvxq">/pages/gonxIBjOhzIg4gQLfvxq</a></td></tr><tr><td></td><td>Learn how to: <br><span data-gb-custom-inline data-tag="emoji" data-code="1f4ca">📊</span> <strong>Visualize data using Python</strong> </td><td></td><td><a href="/pages/EpwLo8u7EKuJfPSI4Riy">/pages/EpwLo8u7EKuJfPSI4Riy</a></td></tr><tr><td><br>Learn how to: <br><span data-gb-custom-inline data-tag="emoji" data-code="1f4e6">📦</span> <strong>Use Python packages in Quadratic</strong> </td><td></td><td></td><td><a href="/pages/ivx3NplMmQtR5f5McFGc">/pages/ivx3NplMmQtR5f5McFGc</a></td></tr><tr><td></td><td>Learn how to: <br><span data-gb-custom-inline data-tag="emoji" data-code="1f9f9">🧹</span> <strong>Clean data using Python</strong> </td><td></td><td><a href="/pages/HWN2jn8RT78M3ZKrVUZx">/pages/HWN2jn8RT78M3ZKrVUZx</a></td></tr><tr><td></td><td>Learn how to: <br><span data-gb-custom-inline data-tag="emoji" data-code="1f3a5">🎥</span> <strong>Manipulate data using Python</strong> </td><td></td><td><a href="/pages/Q2pZJ7AxFdq9NPKbgHPX">/pages/Q2pZJ7AxFdq9NPKbgHPX</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.quadratichq.com/python/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
