set_env_vars
Set environment variables in a Colab notebook runtime. Optionally keep the generated setup cell for later reuse.
Instructions
Sets environment variables in the current Colab Python runtime by executing a generated setup cell.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variables | Yes | Environment variable names and values to set. | |
| persist | No | If true, keep the generated setup cell in the notebook. If false, delete it after execution while leaving the runtime environment variables set. | |
| markerName | No | Marker name used to find this setup cell later with rerun_env_setup_cells. | default |
| cellIndex | No | Optional insertion index for the generated setup cell. Defaults to the end of the notebook. |