如何更改Databricks小部件的顺序?

huangapple go评论55阅读模式
英文:

How to change the order of Databricks widgets?

问题

我有许多Databricks小部件,但我无法更改它们的顺序。自动地,Databricks会按字母顺序对小部件进行排序。然而,我想根据它们的类别手动对它们进行排序。我知道我可以使用数字或字母,但这对最终用户来说不是最佳选项。

英文:

I have many Databricks widgets, but I cannot change their orders. Automatically, Databricks sorts the widgets alphabetically. However, I want to sort them manually based on their categories. I know that I can use numbers or letters, but this is not the best option for end-users.

答案1

得分: 3

I believe this is supported, at least in Databricks Premium.

Once you create some widgets,

dbutils.widgets.text('a_widget','a test')
dbutils.widgets.text('b_widget','another test')

You should see the widget bar appear, and there is an edit icon to the right.

如何更改Databricks小部件的顺序?

This will allow you to drag/drop (also, resize!) the widgets in the order you choose.

如何更改Databricks小部件的顺序?

You can see here, 'b_widget' is now before, 'a_widget'. You can click the check mark to confirm your changes.

英文:

I believe this is supported, at least in Databricks Premium.

Once you create some widgets,

dbutils.widgets.text('a_widget','a test')
dbutils.widgets.text('b_widget','another test')

You should see the widget bar appear, and there is an edit icon to the right.

如何更改Databricks小部件的顺序?

This will allow you to drag/drop (also, resize!) the widgets in the order you choose.

如何更改Databricks小部件的顺序?

You can see here, 'b_widget' is now before, 'a_widget'. You can click the check mark to confirm your changes.

huangapple
  • 本文由 发表于 2023年6月8日 20:52:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/76432055.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定