<?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 define notebook path from a parameter in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/define-notebook-path-from-a-parameter/m-p/34550#M25292</link>
    <description>&lt;P&gt;Is there a way to define the notebook path based a parameter from the calling notebook using %run? I am aware of dbutils.notebook.run(), but would like to have all the functions defined in the reference notebook to be available in the calling notebook run. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically something like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;path_suffix = "_test"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%run ./notebook_path${path_suffix}. &lt;/P&gt;&lt;P&gt;**this does not work, it just runs the notebook_path and ignores the variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2022 19:56:20 GMT</pubDate>
    <dc:creator>jgrgn</dc:creator>
    <dc:date>2022-08-15T19:56:20Z</dc:date>
    <item>
      <title>define notebook path from a parameter</title>
      <link>https://community.databricks.com/t5/data-engineering/define-notebook-path-from-a-parameter/m-p/34550#M25292</link>
      <description>&lt;P&gt;Is there a way to define the notebook path based a parameter from the calling notebook using %run? I am aware of dbutils.notebook.run(), but would like to have all the functions defined in the reference notebook to be available in the calling notebook run. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically something like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;path_suffix = "_test"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%run ./notebook_path${path_suffix}. &lt;/P&gt;&lt;P&gt;**this does not work, it just runs the notebook_path and ignores the variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 19:56:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/define-notebook-path-from-a-parameter/m-p/34550#M25292</guid>
      <dc:creator>jgrgn</dc:creator>
      <dc:date>2022-08-15T19:56:20Z</dc:date>
    </item>
  </channel>
</rss>

