Adding environment variables to notebooks
Any notebook user can add environment variables to their own notebooks.
Before you begin
- You must be a cluster administrator, consumer administrator, or owner of the notebook with the Data Scientist or Consumer User role to add environment variables to your notebooks.
- The notebook must be stopped before adding environment variables to it. For more information, see Stopping notebooks in an instance group.
About this task
A notebook's service activity scripts take the values provided in your environment variables to complete actions. For example, for notebooks enabled with Kerberos user authentication and service-level user impersonation, you require specifying your principal and keytab file (as the file is unique to each user), so that the system can then use this information when starting a Kerberos authenticated notebook using a service-level user impersonation user.
When adding environment variables , if the same environment variable name has been defined in the notebook, the user-defined value will be used.
Notebook users can add this environment variable to the notebooks that they own, and the notebook user's value takes precedence if the same environment variable name is defined elsewhere. For details about precedence of notebook environment variable values, see Jupyter notebook environment variables