<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Why is the whole list not displayed in dbutil.widgets.multiselect? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/why-is-the-whole-list-not-displayed-in-dbutil-widgets/m-p/21402#M14578</link>
    <description>&lt;P&gt;I have been studying the Apache Spark in Databricks Academy and I don't understand why the whole list is nos displayed? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creation of widgets:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.widgets.text("name", "Brickster", "Name")
dbutils.widgets.multiselect("colors","orange", ["orange", "red", "orange", "black", "blue"], "Traffic Sources")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And display it&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;name = dbutils.widgets.get("name")
colors = dbutils.widgets.get("colors").split(",")
&amp;nbsp;
html = "&amp;lt;div&amp;gt;Hi {}! Select your color preference.&amp;lt;/div&amp;gt;".format(name)
for c in colors:
    html += """&amp;lt;label for="{}" style="color:{}"&amp;gt;&amp;lt;input type="radio"&amp;gt; {}&amp;lt;/label&amp;gt;&amp;lt;br&amp;gt;""".format(c, c, c)
&amp;nbsp;
displayHTML(html)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1141iAD3057CBBE30387D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should be with orange, red, blank...&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 21:58:30 GMT</pubDate>
    <dc:creator>Deiry</dc:creator>
    <dc:date>2022-11-21T21:58:30Z</dc:date>
    <item>
      <title>Why is the whole list not displayed in dbutil.widgets.multiselect?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-is-the-whole-list-not-displayed-in-dbutil-widgets/m-p/21402#M14578</link>
      <description>&lt;P&gt;I have been studying the Apache Spark in Databricks Academy and I don't understand why the whole list is nos displayed? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creation of widgets:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.widgets.text("name", "Brickster", "Name")
dbutils.widgets.multiselect("colors","orange", ["orange", "red", "orange", "black", "blue"], "Traffic Sources")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And display it&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;name = dbutils.widgets.get("name")
colors = dbutils.widgets.get("colors").split(",")
&amp;nbsp;
html = "&amp;lt;div&amp;gt;Hi {}! Select your color preference.&amp;lt;/div&amp;gt;".format(name)
for c in colors:
    html += """&amp;lt;label for="{}" style="color:{}"&amp;gt;&amp;lt;input type="radio"&amp;gt; {}&amp;lt;/label&amp;gt;&amp;lt;br&amp;gt;""".format(c, c, c)
&amp;nbsp;
displayHTML(html)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1141iAD3057CBBE30387D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should be with orange, red, blank...&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 21:58:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-is-the-whole-list-not-displayed-in-dbutil-widgets/m-p/21402#M14578</guid>
      <dc:creator>Deiry</dc:creator>
      <dc:date>2022-11-21T21:58:30Z</dc:date>
    </item>
  </channel>
</rss>

