# 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="https://2438361843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff1Y5UzPF2x1oIzVJbUK8%2Fuploads%2FJSNrLKoAeHGFOPuTvw5N%2FCleanShot%202024-12-03%20at%2010.13.17%402x.png?alt=media&#x26;token=d5970c74-b51f-47f9-ad50-1ad9ee653932" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2438361843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff1Y5UzPF2x1oIzVJbUK8%2Fuploads%2Fb8t81vjlrxwihKFh4AtS%2FCleanShot%202024-12-03%20at%2010.13.53%402x.png?alt=media&#x26;token=56a7dfc9-ca66-4561-8150-4912b633888a" 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="https://2438361843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff1Y5UzPF2x1oIzVJbUK8%2Fuploads%2FYLPTa6B81t61YMCO2RhN%2FCleanShot%202024-12-03%20at%2010.14.40%402x.png?alt=media&#x26;token=46e506f7-3fc4-4234-81de-15ef8fdd9608" 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](https://docs.quadratichq.com/python/reference-cells) - get data from the sheet into Python with cell references&#x20;
2. [Return data to the sheet](https://docs.quadratichq.com/python/return-data-to-the-sheet) - return Python outputs from code to the sheet&#x20;
3. [Import packages](https://docs.quadratichq.com/python/packages) - import packages for use in your Python code&#x20;
4. [Make API requests](https://docs.quadratichq.com/python/make-an-api-request) - use the Requests library to query APIs
5. [Visualize data](https://docs.quadratichq.com/python/charts-visualizations) - 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.](https://docs.quadratichq.com/python/reference-cells)&#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="reference-cells">reference-cells</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="return-data-to-the-sheet">return-data-to-the-sheet</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="make-an-api-request">make-an-api-request</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="charts-visualizations">charts-visualizations</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="packages">packages</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="clean-data">clean-data</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="manipulate-data">manipulate-data</a></td></tr></tbody></table>
