> ## Documentation Index
> Fetch the complete documentation index at: https://docs.expectedparrot.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Colab Setup

> All examples, tutorials, and demo notebooks are executable in any Python notebook environment.

To run them in Colab, please follow the special instructions below for technical setup:

## 1. Store your API key as a secret

In Google Colab, your API keys can be stored as “secrets” in lieu of storing them in a *.env* file as you would in other notebook types.

For example, you can store your Expected Parrot API key as follows:

<Frame>
  <img src="https://mintcdn.com/expectedparrot/IxB_pYNaBCxbEdG6/images/en/latest/colab_keys_secrets.png?fit=max&auto=format&n=IxB_pYNaBCxbEdG6&q=85&s=16f2f8d71ddb83425ab2a7c0d00501ab" alt="Storing API key in Google Colab" width="2812" height="1226" data-path="images/en/latest/colab_keys_secrets.png" />
</Frame>

## 2. Install EDSL

Run the following command in a code cell to install the EDSL package:

```bash theme={null}
pip install edsl
```

## 3. Access your API key

Run the following code to access your API key in your Colab notebook:

```python theme={null}
import os
from google.colab import userdata

os.environ['EXPECTED_PARROT_API_KEY'] = userdata.get('EXPECTED_PARROT_API_KEY')
```

## Example Colab code

EDSL methods for creating objects and posting them to Expected Parrot are now available to you in Colab.

Here’s a snapshot of how your Colab code might look:

<Frame>
  <img src="https://mintcdn.com/expectedparrot/IxB_pYNaBCxbEdG6/images/en/latest/colab_sample_code.png?fit=max&auto=format&n=IxB_pYNaBCxbEdG6&q=85&s=2b6e3f52e60f5c999cf914e4b094d3fe" alt="Storing and using API key in Google Colab" width="2314" height="1468" data-path="images/en/latest/colab_sample_code.png" />
</Frame>

## Posting Colab notebooks to Expected Parrot

Special instructions for connecting your Google Drive to post Colab notebooks to Expected Parrot are available in the [Colab Notebooks](/en/latest/colab_notebooks) section.
