<?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 parameters to a notebook via URL? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-pass-parameters-to-a-notebook-via-url/m-p/108238#M43003</link>
    <description>&lt;P&gt;To pass parameters to a notebook via URL in Databricks, you can use the &lt;CODE&gt;%run&lt;/CODE&gt; magic command along with the parameters you want to pass.&lt;/P&gt;
&lt;P&gt;When you run the notebook, you can pass the parameters using the &lt;CODE&gt;%run&lt;/CODE&gt; command followed by the notebook path and the parameters.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;%run /path/to/notebook $param1="value1" $param2="value2"
&lt;/LI-CODE&gt;
&lt;P&gt;In this example, &lt;CODE&gt;param1&lt;/CODE&gt; and &lt;CODE&gt;param2&lt;/CODE&gt; are the names of the widgets in the target notebook, and &lt;CODE&gt;"value1"&lt;/CODE&gt; and &lt;CODE&gt;"value2"&lt;/CODE&gt; are the values you want to pass to these parameters&lt;/P&gt;
&lt;P&gt;Refer&amp;nbsp;&lt;A href="https://docs.databricks.com/en/notebooks/widgets.html" target="_blank"&gt;https://docs.databricks.com/en/notebooks/widgets.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Feb 2025 04:14:06 GMT</pubDate>
    <dc:creator>NandiniN</dc:creator>
    <dc:date>2025-02-01T04:14:06Z</dc:date>
    <item>
      <title>How to pass parameters to a notebook via URL?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-parameters-to-a-notebook-via-url/m-p/107831#M42927</link>
      <description>&lt;P&gt;I have a Notebook written in Python, and a Notebook's Dashboard that shows its result.&lt;/P&gt;&lt;P&gt;The Notebook has a parameters, processed with a text widget:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;dbutils.widgets.text("p_test", "", "Enter Test Value")
p_test = dbutils.widgets.get("p_test")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I enter a value in the widget's text box, it works ok.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The question.&lt;/STRONG&gt; I want to call this notebook (&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;more precisely speaking&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; - its Dashboard) from another web page via a link, &lt;STRONG&gt;passing a value of the parameter in the URL&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem.&lt;/STRONG&gt; If I copy the link to the dashboard and add a "...&lt;STRONG&gt;&amp;amp;p_test=my_value&lt;/STRONG&gt;" at the end, the value is not passed to the widget and to the notebook.&lt;/P&gt;&lt;P&gt;I've found, in new-style AI/BI dashboards they pass parameters in the URL not by its names, but with its unique codes started from "f_nnnn..." so we can enter values to widgets, inspect these codes in the URL and use them to construct your own URL with your own values. But it looks like it does not work for dashboards linked to notebooks. I can't inspect any parameters in the URL while entering values to widgets and running the dashboard.&lt;/P&gt;&lt;P&gt;So, how can I call notebook's dashboard via link with parameters passed in the link?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1-Notebook.PNG" style="width: 710px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14444i80ADD03365CBD150/image-size/large?v=v2&amp;amp;px=999" role="button" title="1-Notebook.PNG" alt="1-Notebook.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2-AddToDashboard.PNG" style="width: 769px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14445iBFA7365085C780FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2-AddToDashboard.PNG" alt="2-AddToDashboard.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3-PassViaURL.PNG" style="width: 798px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14446iB9E4893E30454DAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="3-PassViaURL.PNG" alt="3-PassViaURL.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 14:26:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-parameters-to-a-notebook-via-url/m-p/107831#M42927</guid>
      <dc:creator>Fisher73</dc:creator>
      <dc:date>2025-01-30T14:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameters to a notebook via URL?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-parameters-to-a-notebook-via-url/m-p/108238#M43003</link>
      <description>&lt;P&gt;To pass parameters to a notebook via URL in Databricks, you can use the &lt;CODE&gt;%run&lt;/CODE&gt; magic command along with the parameters you want to pass.&lt;/P&gt;
&lt;P&gt;When you run the notebook, you can pass the parameters using the &lt;CODE&gt;%run&lt;/CODE&gt; command followed by the notebook path and the parameters.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;%run /path/to/notebook $param1="value1" $param2="value2"
&lt;/LI-CODE&gt;
&lt;P&gt;In this example, &lt;CODE&gt;param1&lt;/CODE&gt; and &lt;CODE&gt;param2&lt;/CODE&gt; are the names of the widgets in the target notebook, and &lt;CODE&gt;"value1"&lt;/CODE&gt; and &lt;CODE&gt;"value2"&lt;/CODE&gt; are the values you want to pass to these parameters&lt;/P&gt;
&lt;P&gt;Refer&amp;nbsp;&lt;A href="https://docs.databricks.com/en/notebooks/widgets.html" target="_blank"&gt;https://docs.databricks.com/en/notebooks/widgets.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2025 04:14:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-parameters-to-a-notebook-via-url/m-p/108238#M43003</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-02-01T04:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameters to a notebook via URL?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-parameters-to-a-notebook-via-url/m-p/108239#M43004</link>
      <description>&lt;P&gt;Okay, I tried what you are doing,&lt;/P&gt;
&lt;P&gt;When you create a dashboard from the notebook, Databricks generates a unique URL for the dashboard. This URL typically does not expose the widget parameters directly.&lt;/P&gt;
&lt;P&gt;I will try to find if there is an alternate way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2025 04:18:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-parameters-to-a-notebook-via-url/m-p/108239#M43004</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-02-01T04:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameters to a notebook via URL?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-parameters-to-a-notebook-via-url/m-p/152142#M53767</link>
      <description>&lt;P&gt;Hi, were you able to figure this out? This is important for dashboard embedding as well.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.databricks.com/" target="_blank"&gt;https://&amp;lt;account&amp;gt;.cloud.databricks.com/embed/dashboardsv3/&amp;lt;dashboard&amp;gt;?o=&amp;lt;id&amp;gt;&amp;amp;p_param1=101&amp;amp;p_param_2=500&amp;amp;p_status=active&lt;/A&gt;&lt;/P&gt;&lt;P&gt;this is not passing the parameters as expected.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 10:29:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-parameters-to-a-notebook-via-url/m-p/152142#M53767</guid>
      <dc:creator>prakharcode</dc:creator>
      <dc:date>2026-03-26T10:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameters to a notebook via URL?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-parameters-to-a-notebook-via-url/m-p/152641#M53855</link>
      <description>&lt;P&gt;Hi prakharcode!&lt;/P&gt;&lt;P&gt;No, I have to refuse the idea to use Databricks dashboards as the main platform for the web app. Rewrited all to the set of web pages with Python on Flask, and made some links to a separate Databricks dashboards. Sadly.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 06:32:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-parameters-to-a-notebook-via-url/m-p/152641#M53855</guid>
      <dc:creator>Fisher73</dc:creator>
      <dc:date>2026-03-31T06:32:54Z</dc:date>
    </item>
  </channel>
</rss>

