
Explanation:
In Databricks, parameters are passed to notebooks using widgets. dbutils.widgets.get('parameter_name') is the standard and correct way to retrieve job parameters (like task values or base parameters) passed to a notebook running as a task in a Databricks Job.
Ultimate access to all questions.
A
os.environ.get('region')
B
dbutils.widgets.get('region')
C
sys.argv[1]
D
spark.conf.get('region')
No comments yet.