DataLab Docs
  • What is DataLab?
  • Work
    • Creating a workbook
    • Sharing a workbook
    • Managing a workbook
    • Code cell
      • Working with packages
    • Text cell
      • Including images
    • SQL cell
      • SQL scenarios
      • Parameterize your SQL query
    • Explore Data cell
    • Chart cell
      • Configuring your chart
      • Pivot charts
      • Migration guide
    • AI Assistant
    • Version history
    • Scheduled runs
    • Hiding and showing cells
    • Long-running cells
    • Report view
    • Environment variables
    • Git and GitHub
  • Connect to Data
    • Connect your data to DataLab
    • Sharing a Data Source
    • Airtable
    • Amazon Athena
    • Amazon S3
    • Databricks
    • Dropbox
    • Files
    • Google Drive
    • Google BigQuery
    • Google Sheets
    • MariaDB
    • Microsoft SQL Server
    • MongoDB
    • MotherDuck
    • MySQL
    • Oracle Database
    • PostgreSQL
    • Redshift
    • Snowflake
    • Supabase
  • Guides
    • Publish a notebook
    • Importing data from flat files
    • Resizing plots
    • Show Bokeh and Pyvis plots
  • Resources
    • Pricing
    • Manage group settings
    • Reporting for Group Admins
    • DataLab for education
    • Technical requirements
    • Addressing slow code
    • Address R vulnerability
    • Get help
Powered by GitBook
On this page
  • Creating an empty workbook
  • Creating a workbook from a template
  • Creating a workbook from a dataset
  • Creating a workbook from a (public) GitHub repository
  • Make a copy of an existing workbook
  • Visit ws.new
  • Personal and group workbook

Was this helpful?

  1. Work

Creating a workbook

PreviousWhat is DataLab?NextSharing a workbook

Last updated 11 months ago

Was this helpful?

A data project in DataLab is called a workbook: a collection of source, data, and configuration files. A workbook typically contains at least one notebook, but can also contain no or multiple notebooks.

Creating an empty workbook

In the DataLab interface, click the "New workbook" button in the sidebar.

From here on, you can work in the "AI chat" view and start a chat with the AI assistant or switch to the "Code" view and start adding cells to an empty notebook in your workbook, bring in your own datasets, import previous work or start from a template or dataset.

Creating a workbook from a template

DataLab provides a wide range of templates that contain pre-written code to solve common data science tasks, going from simple things like merging two data frames, all the way up to larger problems such as training a decision tree classifier for making predictions.

To create a workbook from a template, click on "Templates" in the left side bar, browse the list, select a template, and click Create workbook.

Creating a workbook from a dataset

In addition to templates, DataCamp provides a rich and growing collection of datasets to analyze; the workbook you create through this way will contain the necessary data files with some sample code to import and it and a brief description so you can dive in immediately.

To create a workbook from a DataCamp dataset, you can click on the Dataset in the left side bar, browse the list, select a dataset, and click Create workbook.

Creating a workbook from a (public) GitHub repository

Lots of interesting analyses live in GitHub repositories. DataLab allows you to easily create a new workbook from any public GitHub repository.

  1. Click on the Import from GitHub button in the new blank workbook.

  2. Enter the URL or repository name in the modal that appears.

  3. A new workbook opens up that includes all the files from the specified repository.

Make a copy of an existing workbook

Finally, you can also create a new workbook by making a copy of an already existing workbook that you own or that you have view access to:

  1. In the workbook you want to copy, open the File menu and select Make a Copy:

  2. In the modal that appears specify the title for the new workbook (optional), in which account you would like to create this workbook, whether the new workbook should be private or public, and click Make a Copy.

  3. A new workbook will be created that contains all the files and folders that are stored in the home directory of the original workbook.

Note that in step 1, you can also click Create Copy Link to create a reusable URL to create a new workbook, duplicating the original workbook. You can use this URL to send over to peers so they can easily create a copy of your workbook. This can be useful in an education context, as described in DataLab for education.

Visit ws.new

  • You land in a new, empty workbook, ready to start working.

Personal and group workbook

By default, all workbooks you create will live under your personal account. You can see this by checking the account selector in the sidebar.

Workbooks that live in your personal account, also called personal workbooks:

  • Can be made public to anyone with the link to your workbook (you can choose to disable this).

If you are a member of one or more DataCamp groups, you can also create workbooks inside these group spaces. To create a group workbook, click the account selector dropdown and select a group. These group workbooks:

  • Can easily be shared with all members in your group (rather than having to share with every group member individually).

  • Cannot be shared with members that are not in your group.

Create a new blank workbook as described and switch to the "Code" view.

Visit the url in your browser

Can use and that are configured in your personal account.

Can use and that are configured in the group.

ws.new
environment variables
database connections
environment variables
database connections
in the section above
Ways to start in an empty workbook
Copy workbook modal