Skip to content

Widgets

David Liu edited this page May 3, 2026 · 2 revisions

在小型解决方案中,widget功能的效果非常好,但它使用起来有点烦琐,也不适合用来实现复杂的工作流,因为很难追踪其中发生的情况 ---- 《Beginning Apache Spark Using Azure Databricks》

Widgets allow you to add parameters

  • to your reusable notebooks and dashboards

Create widgets using the UI

Select Edit > Add widget

  • used in SQL Editor attached to SQL warehouse

Create widgets using API

dbutils.widgets.help()

  • Used in notebook attached to cluster
  • Further advanced control(layout, plot), use ipywidgets

Clone this wiki locally