DataCamp Workspace
DataCamp Workspace is an online IDE which allows you to write code and analyze data collaboratively and share your data insights. Visit the DataCamp website to learn more about DataCamp Workspace or access your workspace directly if you are an existing customer.
This page describes how you can connect the Data Connector to your Workspace to get immediate access to all your learning data. This assumes you already have created a workspace. If you don't know how to create a new workspace, our Workspace documentation helps you on the way!

1. Collecting your credentials

Before you can set up an integration, first make sure you have the credentials for the Data Connector. You can find them by logging in to the Group Hub. Our Getting started documentation will help you on the way.

2. Create and connect an integration

In order to connect to the Data Connector from a Workspace you'll need to set up an integration. Workspace integrations allow you to seamlessly connect to data sources or external services in a secure way. With an integration you can define environment variables that allow you to safely store secrets (such as passwords, API keys, etc ...) within a workspace.
Start by creating a new integration and then defining the following environment variables. As values, use the credentials you collected in the previous step.
  • AWS_REGION
  • AWS_BUCKET
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
Now save and connect the integration to your workspace.

3. Test your integation

The simplest way to test if the connection to the Data Connector works is by using our dcdcpy package which comes pre-installed in all workspaces. Just copy & paste the code snippet below in a new notebook and it should display the first 5 members of your organization.
1
import dcdcpy.dcdcpy as dcdcpy
2
3
dc = dcdcpy.DataConnector()
4
dc.user_dim().head()
Copied!