Introduction

The Code Operator is a VS Code IDE embedded in Datagran along with Jedi, your AI pair programmer. The Datagran IDE is a complete development environment with a terminal and debug mode that supports most languages like Python, SQL, Java, JavaScript and R.

For a video Demo on how to use the Code Operator click here

Working with internal repositories

This section outlines the process of utilizing an internal Git repository within the operator workflow:

  1. An internal repository is created upon launching the development machine.
  2. Users make code changes within the development machine and sync them to the operator-specific Git repository.
  3. Users execute the operator, either standalone or as part of a pipeline. The code is sourced from the internal Git repository.

Refer to the "Working with External Repositories" section at the end of this document for instructions on integrating external repositories (e.g., GitLab, GitHub, or custom servers) to allow users to work in their own development environments, maintain code ownership, and reduce development machine costs using familiar tools and services.

Configuration

When editing the operator, its configuration consists of the following sections:

Input

You can connect multiple operators to an Code Operator, and map any number of tables as input. To do this, fill the "input table" section with a list of (selected table, filename) pairs, as shown below:

input-table.png

Note: The filename (e.g., "myalias" in this example) can be any name and serves as an alias for your table.

To add another table after launching the IDE, simply fill out the Input Table information and save the Operator.

Output

You can define any number of unique output tables. To ensure proper configuration, follow these guidelines: