<?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: A simple Python command on Databricks
selection = input(&amp;quot;Enter value&amp;quot;)
doesn't create a window box to enter the value. Searching reasons on the User Interface or other? in missing-QuestionPost</title>
    <link>https://community.databricks.com/t5/missing-questionpost/a-simple-python-command-on-databricks-selection-input-quot-enter/m-p/2776#M20</link>
    <description>&lt;P&gt;Hi, Chico:&lt;/P&gt;&lt;P&gt;In Databricks notebooks, input() function calls won't work as you might expect from running Python in other environments. Because Databricks notebooks are using Spark. They're not intended to interact with users in real-time, such as taking keyboard inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is alternative way: Databricks has a feature called "widgets". Widgets are interactive HTML forms that can be embedded within Databricks notebooks. Here is the example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.widgets.text("inputs", '{"name":"Monica, "company":"Databricks"}')
inputs = dbutils.widgets.get("inputs")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Reference doc: &lt;A href="https://docs.databricks.com/dev-tools/databricks-utils.html" target="test_blank"&gt;https://docs.databricks.com/dev-tools/databricks-utils.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 18:28:40 GMT</pubDate>
    <dc:creator>User16539034020</dc:creator>
    <dc:date>2023-06-21T18:28:40Z</dc:date>
    <item>
      <title>A simple Python command on Databricks
selection = input("Enter value")
doesn't create a window box to enter the value. Searching reasons on the User Interface or other?</title>
      <link>https://community.databricks.com/t5/missing-questionpost/a-simple-python-command-on-databricks-selection-input-quot-enter/m-p/2775#M19</link>
      <description />
      <pubDate>Wed, 21 Jun 2023 12:54:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/missing-questionpost/a-simple-python-command-on-databricks-selection-input-quot-enter/m-p/2775#M19</guid>
      <dc:creator>chico</dc:creator>
      <dc:date>2023-06-21T12:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: A simple Python command on Databricks
selection = input("Enter value")
doesn't create a window box to enter the value. Searching reasons on the User Interface or other?</title>
      <link>https://community.databricks.com/t5/missing-questionpost/a-simple-python-command-on-databricks-selection-input-quot-enter/m-p/2776#M20</link>
      <description>&lt;P&gt;Hi, Chico:&lt;/P&gt;&lt;P&gt;In Databricks notebooks, input() function calls won't work as you might expect from running Python in other environments. Because Databricks notebooks are using Spark. They're not intended to interact with users in real-time, such as taking keyboard inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is alternative way: Databricks has a feature called "widgets". Widgets are interactive HTML forms that can be embedded within Databricks notebooks. Here is the example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.widgets.text("inputs", '{"name":"Monica, "company":"Databricks"}')
inputs = dbutils.widgets.get("inputs")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Reference doc: &lt;A href="https://docs.databricks.com/dev-tools/databricks-utils.html" target="test_blank"&gt;https://docs.databricks.com/dev-tools/databricks-utils.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 18:28:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/missing-questionpost/a-simple-python-command-on-databricks-selection-input-quot-enter/m-p/2776#M20</guid>
      <dc:creator>User16539034020</dc:creator>
      <dc:date>2023-06-21T18:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: A simple Python command on Databricks
selection = input("Enter value")
doesn't create a window box to enter the value. Searching reasons on the User Interface or other?</title>
      <link>https://community.databricks.com/t5/missing-questionpost/a-simple-python-command-on-databricks-selection-input-quot-enter/m-p/2777#M21</link>
      <description>&lt;P&gt;Hi @stephane cochet​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting your question in our community! We are happy to assist you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 05:05:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/missing-questionpost/a-simple-python-command-on-databricks-selection-input-quot-enter/m-p/2777#M21</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-22T05:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: A simple Python command on Databricks
selection = input("Enter value")
doesn't create a window box to enter the value. Searching reasons on the User Interface or other?</title>
      <link>https://community.databricks.com/t5/missing-questionpost/a-simple-python-command-on-databricks-selection-input-quot-enter/m-p/2778#M22</link>
      <description>&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should nave clarified: this a Pyspark environnment not just a Python one.&lt;/P&gt;&lt;P&gt;The issue relies in the cluster settings as taking an other one provides the expected outcome.  What is sspecific in my initial cluter SFC ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 07:29:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/missing-questionpost/a-simple-python-command-on-databricks-selection-input-quot-enter/m-p/2778#M22</guid>
      <dc:creator>chico</dc:creator>
      <dc:date>2023-06-22T07:29:05Z</dc:date>
    </item>
  </channel>
</rss>

