Upload files for use in a given project. Use this feature to load in source data, figures, images, etc.
Keep your sensitive values, like API tokens or passwords, secret by adding them as... Secrets. We store all Secrets in a highly-encrypted vault, which is only visible to other project Editors or Owners. Secrets can be referenced in code cells, but an attempt to display them will return
[REDACTED] to prevent any accidentally leaking of secrets.
To access your Secrets call them directly in place of where you would hard code your credentials. In the example below, we're setting up a Snowflake connection and passing database details as Secrets.
You can configure environment variables to be used in your projects. Environment variables aren't kept in the vault, nor are they redacted. Setting an environment variable in the left side panel is equivalent to using the python
os library (more documentation here) directly in your Logic cells .
We also have some built-in variables:
If a project has been set to run on a schedule, this variable is set
"logic", "app", or "scheduled"
Helpful if you want to restrict certain logic to only run while in App, Logic, or Scheduled run modes. As an example, use this if you have some debug logic that you don't want to run while a user is interacting with an app.
The Variable Explorer allows you to browse the objects generated by your code. For each object, we show you its name, type, and value.