Datalore 2025.2 Help

Manage environment variables in a workspace

Environment variables as workspace resources

This article explains how to manage environment variables added to your workspaces. Such environment variables can be attached to any notebook residing in the respective notebook.

Access environment variables in a workspace

  1. On the Home page, select the workspace where you want to access environment variables.

  2. From the left-hand menu of the selected workspace, select Other and switch to the Environment variables tab. This will open the list of all workspace environment variables.

Environment variables menu

Manage environment variables as workspace resources

Create an environment variable for workspace resources

The procedure explains how to create an environment variable that you want to use across multiple notebooks from this workspace.

  • In the Environment variables menu, click the Add button in the upper right corner.

    This will open the Create environment variable dialog.

  • Provide a name for the new environment variable.

  • Provide a key name. This is what will be referenced in the notebook code.

  • Provide a key value. This is the protected value that only you can manage.

  • (Optional) Click Add key-value pair to provide another record.

  • Click the Create variable button to finish your work in the dialog.

    Creating environment variable

The new environment variable can now be attached to any notebook from this workspace.

Edit an environment variable

  1. Click the respective item in the Environment variables list. This will open the Edit environment variable dialog.

  2. In the dialog, make the required changes and click the Update variable button.

Rename an environment variable

  1. Right-click the respective item in the Environment variables list.

  2. Select Rename from the menu.

  3. Enter a new name and press Enter.

Clone an environment variable to other workspaces

  1. Right-click the respective item in the Environment variables.

  2. Select Clone to other workspaces from the menu. This will open the Clone [environment_variable_name] dialog.

  3. In the dialog, expand the Workspaces dropdown list.

  4. Select the workspaces where you want to clone the environment variable and click anywhere outside the dropdown.

  5. Click the Clone button. This will close the dialog, followed by a success notification.

Clone to other workspaces dialog

Delete an environment variable

  1. Right-click the respective item in the Environment variables list.

  2. Select Delete from the menu.

Keywords

environment variables in workspace, environment management, workspace resources

Last modified: 28 January 2025