
Explanation:
Databricks supports four types of widgets: text, dropdown, combobox, and multiselect. The 'list' widget is not among the supported types. Here's how you can create each supported widget:
dbutils.widgets.text("environment", "dev") for text widgets.dbutils.widgets.dropdown("language", "Python", ["Python", "Scala", "SQL", "R"]) for dropdown widgets.dbutils.widgets.combobox("cloud", "AWS", ["GCP", "Azure", "AWS"]) for combobox widgets.dbutils.widgets.multiselect("database", "SQL Server", ["SQL Server","PostgreSQL", "MySQL", "MongoDB"]) for multiselect widgets.For more information, refer to the Databricks documentation on widgets.
Ultimate access to all questions.
No comments yet.