# DataLab

[DataLab](https://www.datacamp.com/datalab) is a cloud-based notebook built by DataCamp that allows you to experiment with code, analyze data, collaborate with others, and share insights with no installation required.

This page describes the steps to analyze Data Connector learning data with DataLab.&#x20;

Complete these two steps to view your learning data in Power BI.

1. [Set up an Amazon Athena data connection](#set-up-an-amazon-athena-data-connection)
2. [Query your data](#query-your-data)

### Set up an Amazon Athena data connection

{% hint style="info" %}
First, make sure you have your [credentials](https://enterprise-docs.datacamp.com/integrating-our-data-into-your-tools-via-data-connector-2.0/getting-started-with-data-connector-2.0/your-credentials).
{% endhint %}

Head over to the DataLab dashboard at <https://app.datacamp.com/datalab/>.

Click on **Data Sources** on the left-hand panel.

<div align="left"><figure><img src="https://562960931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkJKV1xpCBb6myYGAGdfV%2Fuploads%2FeQbXxwktxP1NF0gQUcsB%2Fdata_sources.png?alt=media&#x26;token=7399662b-7799-4c33-860e-2c88abf76944" alt="" width="235"><figcaption></figcaption></figure></div>

Select **New Data Source**.

<figure><img src="https://562960931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkJKV1xpCBb6myYGAGdfV%2Fuploads%2FY6cq80ZvwoR9o0stjIf9%2Fnew_data_source.png?alt=media&#x26;token=72b8199e-5520-4b41-a71b-77f04fd3e273" alt=""><figcaption></figcaption></figure>

Select **Amazon Athena.**

<figure><img src="https://562960931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkJKV1xpCBb6myYGAGdfV%2Fuploads%2FcG9xyqsK8YDCxaa9D0qZ%2Fselect_data_source.png?alt=media&#x26;token=9f348a70-ed20-41e9-b484-69ed7c69efca" alt=""><figcaption></figcaption></figure>

Enter the following data in the setup dialog.

* Name: Free to choose (e.g., `DataCamp Data Connector`)
* Description: optional; you can leave it blank
* Region: The **AWS Region** from your credentials
* Output Bucket: `s3://{bucketname}/tmp-datalab` → *replace* `{bucketname}` *with the **S3 Bucket Name** from your credentials*
* Access Key: the **AWS Access Key ID** from your credentials
* Secret Key: the **AWS Secret Access Key** from your credentials
* Click **Connect**

<figure><img src="https://562960931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkJKV1xpCBb6myYGAGdfV%2Fuploads%2FOVMjjXOm3Die2fkN1r6u%2FCleanShot%202025-03-25%20at%2010.18.12%402x.png?alt=media&#x26;token=86233f8e-7291-4372-9c74-636bb16ee259" alt=""><figcaption></figcaption></figure>

### Query your data

* You can now access your organization's learning data with a SQL cell.&#x20;
* Create a new SQL cell and select the Athena connection you just created in the Select data source dropdown in the top left corner of the cell:&#x20;

<figure><img src="https://562960931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkJKV1xpCBb6myYGAGdfV%2Fuploads%2FejNokSt8FkgZdO7qZBqM%2Fchoose_source.png?alt=media&#x26;token=7bd78740-ac79-4c95-b823-fe878e4d0278" alt=""><figcaption></figcaption></figure>

* You can now write and run a SQL query through the Athena connection. See the [Sample Queries](https://enterprise-docs.datacamp.com/integrating-our-data-into-your-tools-via-data-connector-2.0/sample-queries) page for examples of typical reports you can build.
* You can browse all the available tables through the schema browser by clicking the ![](https://562960931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkJKV1xpCBb6myYGAGdfV%2Fuploads%2FjzZ8G5GPCU7C04paXqvE%2Fshow_images.png?alt=media\&token=315d58d6-c3d1-4468-8f65-159b64b7bf7a)icon in the SQL cell.

## Resources

* [DataLab documentation](https://datalab-docs.datacamp.com/connect-to-data/athena)
