Skip to content
Workspaces

Create a workspace and load data

Create a Python, R or SQL workspace, load Storage tables and files into it, unload the results, and turn the workspace into a transformation.

This page has the step-by-step tasks for a workspace, from creating it to moving its results back to Storage. To open the workspace in JupyterLab or a SQL tool, see Connect to a workspace.

Goal: a running workspace of the type you need, listed in the Workspaces section.

  1. Select Workspaces from the top menu and click + Create Workspace.

    Workspace Introduction

  2. Select a workspace type. Which types you can pick depends on the project; see Workspace types.

    Workspace - Select Type

  3. Enter a Name and, optionally, a Description. The other fields depend on the workspace type and come with a default: a Python or R workspace has Backend Version, Backend Size, Auto Sleep Timeout and Share with all project users; a Snowflake SQL workspace has Folder and Share with all project users, and no choice of authentication.

    Where the dialog offers Grant read-only access to all storage data, ticking it enables read-only input mapping; where it shows a Read-Only Access note instead, the workspace gets read-only access to all project data by default.

    Workspace - Name workspace

  4. Click Create Workspace.

Creating the workspace takes a few seconds, so it will take a while before it appears:

Workspace - Running

Result: once the workspace is ready, you’ll see it in the workspace list:

Workspace - Running

In the workspace detail, you can

  1. get credentials & connect to the workspace,
  2. configure workspace mappings,
  3. load & unload data specified in the mappings, and
  4. manage the workspace (resume & terminate & delete)

Workspace - Running

You can also create workspaces from transformations.

Goal: the Storage tables and files you need, available inside the workspace.

To open the workspace detail, click the workspace name in the Workspaces list.

  1. In the workspace detail, configure a table input mapping or file input mapping (or both).

  2. In the right panel, click Load data. It is enabled only when the workspace has an input mapping.

    Workspace - Load Data

  3. In the Load Data to Workspace dialog, choose the Operation: Preserve non-conflicting tables or Clean workspace before loading (the default). Click Load data.

When loading data into a workspace, you can specify entire buckets, which can be especially useful when you are not sure what tables you’ll need in your work. You can also take advantage of alias tables and prepare buckets with the tables you’ll need.

Result: the tables and files from the input mapping are loaded into the workspace.

In the Load Data to Workspace dialog, you have the option to Clean workspace before loading. When this option is enabled, Keboola removes all tables and views from the workspace schema before loading the new data. However, the following objects are not removed and will persist across loads:

  • Stored procedures
  • User-defined functions (UDFs)

This is by design — Keboola does not create stored procedures or UDFs, so it does not manage or remove them during cleanup. If you have created stored procedures or UDFs in the workspace, you are responsible for managing their lifecycle. Keep this in mind to avoid potential naming conflicts or unexpected behavior from outdated routines.

Goal: tables or files from a Python or R workspace saved to Storage.

Unloading data is useful, for example, when your ad-hoc analysis leads to valuable results, or when you trained a new model which you’d like to use in transformations.

  1. In the workspace detail, configure a Table Output Mapping or File Output Mapping (or both).

  2. Click Unload data.

    Workspace - Unload Data

Result: the tables and files from the output mapping are saved to Storage.

For Snowflake and BigQuery workspaces, you can also export a single table directly from the workspace schema to File Storage via the Storage API. See Exporting Workspace Tables to Files for details.

Snowflake and BigQuery workspaces can also skip unloading entirely and write to a Storage table directly with Direct Mode output mapping. The workspace gets write access to the selected table as soon as the mapping is saved, so no Unload data run is needed.

Goal: a new transformation that carries the input and output mapping of the workspace.

Python and Snowflake SQL workspaces both have this action in the workspace detail.

  1. Configure mappings and develop your script in JupyterLab or your queries in the SQL Editor.

  2. In the workspace detail, click Create new transformation. To add the workspace to a transformation you already have, click Copy to existing transformation instead.

    Workspace - Create Transformation

  3. In the Create Transformation dialog, enter the Name and optionally a Description; for a Python workspace, the name is prefilled with the workspace name and you can pick a Backend Version. Click Create Transformation.

    Workspace - Create Transformation

Result: a new transformation with the input and output mapping of the workspace. From a Python or R workspace, the notebook script is not copied. From an SQL workspace, the saved queries and variables are copied as well; see Variables.

Next: Connect to a workspace →

Ask Kai

Hi, I'm Kai — Keboola's AI assistant for the docs. Ask me anything and I'll answer from the documentation and cite the pages I use.

Kai is an AI and can make mistakes. Check the sources it links.