<?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: How to pass dynamic value in databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-pass-dynamic-value-in-databricks/m-p/34113#M24894</link>
    <description>&lt;P&gt;Hi you can run one notebook from another and pass value as widget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;run_notebook(notebook, timeout, widgets_value)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is more info &lt;A href="https://docs.databricks.com/notebooks/notebook-workflows.html" alt="https://docs.databricks.com/notebooks/notebook-workflows.html" target="_blank"&gt;https://docs.databricks.com/notebooks/notebook-workflows.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can even run them in many processes simultaneously:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    from multiprocessing.pool import ThreadPool
    my_params =  ["Eu","JP","APAC"]
    pool = ThreadPool(4) # match cpu cores here
    pool.map(
        lambda my_param: run_notebook("my_notebook", 3600, {"my_widget": my_param}),
        my_params)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 11:32:14 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2021-12-01T11:32:14Z</dc:date>
    <item>
      <title>How to pass dynamic value in databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-dynamic-value-in-databricks/m-p/34112#M24893</link>
      <description>&lt;P&gt;I have separate column value defined in 13 diffrent notebook and i want merge into 1 databrick notebook and want to pass dynamic parameter using databrick  so it will help me to run in single databricks notebook . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 11:16:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-dynamic-value-in-databricks/m-p/34112#M24893</guid>
      <dc:creator>Siddhesh2525</dc:creator>
      <dc:date>2021-12-01T11:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic value in databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-dynamic-value-in-databricks/m-p/34113#M24894</link>
      <description>&lt;P&gt;Hi you can run one notebook from another and pass value as widget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;run_notebook(notebook, timeout, widgets_value)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is more info &lt;A href="https://docs.databricks.com/notebooks/notebook-workflows.html" alt="https://docs.databricks.com/notebooks/notebook-workflows.html" target="_blank"&gt;https://docs.databricks.com/notebooks/notebook-workflows.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can even run them in many processes simultaneously:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    from multiprocessing.pool import ThreadPool
    my_params =  ["Eu","JP","APAC"]
    pool = ThreadPool(4) # match cpu cores here
    pool.map(
        lambda my_param: run_notebook("my_notebook", 3600, {"my_widget": my_param}),
        my_params)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 11:32:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-dynamic-value-in-databricks/m-p/34113#M24894</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2021-12-01T11:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic value in databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-dynamic-value-in-databricks/m-p/34114#M24895</link>
      <description>&lt;P&gt;Hi @siddhesh Bhavar​&amp;nbsp;you can use widgets with the %run command to achieve this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/notebooks/widgets.html#use-widgets-with-run" alt="https://docs.databricks.com/notebooks/widgets.html#use-widgets-with-run" target="_blank"&gt;https://docs.databricks.com/notebooks/widgets.html#use-widgets-with-run&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%run /path/to/notebook $X="10" $Y="1"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 15:06:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-dynamic-value-in-databricks/m-p/34114#M24895</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2021-12-02T15:06:37Z</dc:date>
    </item>
  </channel>
</rss>

