Accessing Job parameters using cluster v15.4

data_mifflin
New Contributor III

After upgrading databricks cluster to version 15.4, is there any way to access job parameters in notebook except the following way ?
dbutils.widgets.get("parameter_name")

In v15.4, dbutils.notebook.entry_point.getCurrentBindings() has been discontinued.

 

Alberto_Umana
Databricks Employee
Databricks Employee

Hi @data_mifflin - Unfortunately I could not find any other way than: dbutils.widgets.get("parameter_name") but let me check internally.

Thanks Alberto, for looking into it !

@Alberto_Umana , did you check internally ?

data_mifflin
New Contributor III

@Alberto_Umana , did you find anything ?

Pawan1979
New Contributor II

For me it is working at 15.4 LTS (includes Apache Spark 3.5.0, Scala 2.12)

@Pawan1979 , are you using Scala or pyspark ?
I am using pyspark, and it is not working.