<?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 Re: Why doesn't my notebook display widgets when I use 'dbutils' while it is displayed with '%sql CREATE WIDGET'? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/why-doesn-t-my-notebook-display-widgets-when-i-use-dbutils-while/m-p/14168#M8708</link>
    <description>&lt;P&gt;That is great to hear! It seemed like an odd issue but glad it all worked out. &lt;/P&gt;</description>
    <pubDate>Tue, 12 Oct 2021 16:25:19 GMT</pubDate>
    <dc:creator>Ryan_Chynoweth</dc:creator>
    <dc:date>2021-10-12T16:25:19Z</dc:date>
    <item>
      <title>Why doesn't my notebook display widgets when I use 'dbutils' while it is displayed with '%sql CREATE WIDGET'?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-doesn-t-my-notebook-display-widgets-when-i-use-dbutils-while/m-p/14164#M8704</link>
      <description>&lt;P&gt;The widget is not shown when I use dbutils while it works perfect with sql.&lt;/P&gt;&lt;P&gt;For example, &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%sql
&amp;nbsp;
CREATE WIDGET TEXT state DEFAULT "CA"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This one shows me widget.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.widgets.text("name", "Brickster", "Name")
dbutils.widgets.multiselect("colors", "orange", ["red", "orange", "black", "blue"], "Traffic Sources")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This one shows nothing even though I can see `Command took&amp;nbsp;0.03 seconds` message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I can get results from widget even though I cannot see it when I use codes below.&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;I attached images.&lt;span class="lia-inline-image-display-wrapper" image-alt="dbutils get info from widget"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2420i1AA3B0D8228B6AFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="dbutils get info from widget" alt="dbutils get info from widget" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="dbutils widget creation"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2414i94CD6EE0BC072AFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="dbutils widget creation" alt="dbutils widget creation" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 05:20:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-doesn-t-my-notebook-display-widgets-when-i-use-dbutils-while/m-p/14164#M8704</guid>
      <dc:creator>daindana</dc:creator>
      <dc:date>2021-09-30T05:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my notebook display widgets when I use 'dbutils' while it is displayed with '%sql CREATE WIDGET'?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-doesn-t-my-notebook-display-widgets-when-i-use-dbutils-while/m-p/14166#M8706</link>
      <description>&lt;P&gt;Hi @DAIN KIM​&amp;nbsp;, I tried to reproduce your issue but was unable to. Which language of notebook are you using (python,sql)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And just to be clear, the python dbutils.widget.text does not show up at the top of the notebook?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 20:30:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-doesn-t-my-notebook-display-widgets-when-i-use-dbutils-while/m-p/14166#M8706</guid>
      <dc:creator>Ryan_Chynoweth</dc:creator>
      <dc:date>2021-10-11T20:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my notebook display widgets when I use 'dbutils' while it is displayed with '%sql CREATE WIDGET'?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-doesn-t-my-notebook-display-widgets-when-i-use-dbutils-while/m-p/14167#M8707</link>
      <description>&lt;P&gt;Hello, Ryan! For some reason, this problem is solved, and now it is working perfectly! I did nothing new, but it is just working now. &lt;/P&gt;&lt;P&gt;Thank you!:)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 23:45:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-doesn-t-my-notebook-display-widgets-when-i-use-dbutils-while/m-p/14167#M8707</guid>
      <dc:creator>daindana</dc:creator>
      <dc:date>2021-10-11T23:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my notebook display widgets when I use 'dbutils' while it is displayed with '%sql CREATE WIDGET'?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-doesn-t-my-notebook-display-widgets-when-i-use-dbutils-while/m-p/14168#M8708</link>
      <description>&lt;P&gt;That is great to hear! It seemed like an odd issue but glad it all worked out. &lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 16:25:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-doesn-t-my-notebook-display-widgets-when-i-use-dbutils-while/m-p/14168#M8708</guid>
      <dc:creator>Ryan_Chynoweth</dc:creator>
      <dc:date>2021-10-12T16:25:19Z</dc:date>
    </item>
  </channel>
</rss>

