Apache Zeppelin Form Select Example

First option is the default, and the second option is the list of key-value pairs:

println(z.select("", List(("a", "B"))))

If you want to get what the user picked, z.select will return it:

val selection = 
   listBuckets.map((b) => (b, b)).sorted

if (selection != "") {

You should also name these, especially if you want more than one. To do that, add another parameter up front:

val selection = z.select("tag", "", listTags(dataset.toString))