q8sctl user guideEnvironment variables

Environment variables can be set in the .env.q8s file that should be placed in the root directory of the workspace.

.env.q8s
export KEY=VALUE

To use the environment variables in programs or Jupyter notebooks, you can access them as usual:

app.py
import os
 
print(os.environ.get("KEY", None))
# VALUE