<?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: Can I run one notebook from another notebook? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/36059#M26035</link>
    <description>&lt;P&gt;absolutely you can.&lt;BR /&gt;there is databricks documentation explaining everything you need to know here:&amp;nbsp;&lt;A href="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;</description>
    <pubDate>Wed, 28 Jun 2023 23:43:27 GMT</pubDate>
    <dc:creator>Gooeylewie</dc:creator>
    <dc:date>2023-06-28T23:43:27Z</dc:date>
    <item>
      <title>Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30851#M22414</link>
      <description />
      <pubDate>Wed, 18 Feb 2015 21:26:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30851#M22414</guid>
      <dc:creator>__Databricks_Su</dc:creator>
      <dc:date>2015-02-18T21:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30852#M22415</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Sure. Use the %run syntax as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;%run /PoundInclude&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The target notebook does not need to be attached to a cluster. It will get pulled into the caller's context.&lt;/P&gt;
&lt;P&gt;At this time, you can't combine Scala and Python notebooks, but you can combine Scala+SQL and Python+SQL notebooks.&lt;/P&gt;
&lt;P&gt;You must specify the fully-qualified notebook from the root of the Workspace. Relative paths are not supported at this time.&lt;/P&gt;
&lt;P&gt;If you have spaces in your notebook name, you'll need to surround the target of %run with quotes as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;%run "/PoundInclude (Python)"&lt;/CODE&gt;&lt;/PRE&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2015 21:26:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30852#M22415</guid>
      <dc:creator>__Databricks_Su</dc:creator>
      <dc:date>2015-02-18T21:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30853#M22416</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm missing something obvious here, I'm running %run 'notebook2' inside 'notebook1' where both notebooks are in the main Workspace directory and receiving the error:&lt;/P&gt;
&lt;P&gt;ERROR: File &lt;PRE&gt;&lt;CODE&gt;u'notebook2.py'&lt;/CODE&gt;&lt;/PRE&gt; not found.&lt;/P&gt;
&lt;P&gt;Is there a path setting I forgot?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2015 22:47:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30853#M22416</guid>
      <dc:creator>sugreevchawla</dc:creator>
      <dc:date>2015-03-23T22:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30854#M22417</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Try running the %run in a new cell. There can't be any other code in the same cell performing the %run. You can still use the results of the %run in subsequent cells.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 03:26:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30854#M22417</guid>
      <dc:creator>JeffPang</dc:creator>
      <dc:date>2015-03-26T03:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30855#M22418</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I also have the same issue. I don't have any other code in the cell.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 12:22:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30855#M22418</guid>
      <dc:creator>HananShteingar1</dc:creator>
      <dc:date>2016-05-20T12:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30856#M22419</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Bit late: even comments can cause this issue&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 13:21:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30856#M22419</guid>
      <dc:creator>SamKlingner</dc:creator>
      <dc:date>2016-10-28T13:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30857#M22420</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://users/1680/hshteingart.html" target="_blank"&gt;@hshteingart&lt;/A&gt; &lt;A href="https://users/27/sugreevc.html" target="_blank"&gt;@sugreevc&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Does including the notebook file extension help you, e.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;%run my_other_notebook.ipynb&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 22:03:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30857#M22420</guid>
      <dc:creator>RogerErens</dc:creator>
      <dc:date>2017-02-07T22:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30858#M22421</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You can now use relative paths, e.g. %run "./PoundInclude (Python)"&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 15:54:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30858#M22421</guid>
      <dc:creator>JosiahYoder</dc:creator>
      <dc:date>2017-08-10T15:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30859#M22422</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I want to run an existing notebook from another R notebook.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 07:52:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30859#M22422</guid>
      <dc:creator>jayashree</dc:creator>
      <dc:date>2018-05-14T07:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30860#M22423</link>
      <description>&lt;P&gt;&lt;/P&gt; 
&lt;P&gt;dbutils.notebook.run("notebook_name", time(in sec) ,{ " "db_name" : "jmdc_20180731_test"}) &lt;A href="https://users/5928/christian-rodriguez.html" target="_blank"&gt;@Christian Rodriguez&lt;/A&gt; &lt;A href="https://users/28018/jayashree.html" target="_blank"&gt;@jayashree&lt;/A&gt; &lt;A href="https://users/4685/roger-erens.html" target="_blank"&gt;@Roger Erens&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;For example:&lt;/P&gt; 
&lt;P&gt;dbutils.notebook.run("notebook_1", 600,{ "db_name" : "jmdc_20180731_test"})&lt;/P&gt; 
&lt;P&gt;Please let me know if you do have any issues.&lt;/P&gt; 
&lt;P&gt;Mail id : vinayakbhrdwj@gmail.com&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 08:10:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30860#M22423</guid>
      <dc:creator>VinayakBhardwaj</dc:creator>
      <dc:date>2018-08-08T08:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30861#M22424</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;How do I make the notebook run in a different window on calling? @Roger Erens&lt;/P&gt;
&lt;P&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 10:40:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30861#M22424</guid>
      <dc:creator>manishtangudu</dc:creator>
      <dc:date>2018-12-05T10:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30862#M22425</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Is it possible to import a particular function using %run statement in azure databricks?&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 07:15:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30862#M22425</guid>
      <dc:creator>amanpreetkaur</dc:creator>
      <dc:date>2019-05-03T07:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30863#M22426</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Yes we can import all things (functions,variables etc) from one notebook to another notebook... &lt;/P&gt;
&lt;P&gt;Just remember to run %run /Users/path/Notebook_Name in a separate cell&lt;/P&gt;
&lt;P&gt;and then you can call one notebook functions in another one &lt;A href="https://users/29589/amanpreet-kaur.html" target="_blank"&gt;@amanpreet kaur&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 13:26:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30863#M22426</guid>
      <dc:creator>PRABHATKUMAR</dc:creator>
      <dc:date>2019-05-31T13:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30864#M22427</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Is it possible to do something like this: %run /Users/path/Notebook_Name &lt;B&gt;Function_Name ? &lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;&lt;A href="https://users/30661/prabhu4284.html" target="_blank"&gt;@Prabhu4284&lt;/A&gt; &lt;/B&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 06:20:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30864#M22427</guid>
      <dc:creator>amanpreetkaur</dc:creator>
      <dc:date>2019-06-03T06:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30865#M22428</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;How to call function of notebook_name from let say calling notebook.can you give an example for that use case&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 11:12:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30865#M22428</guid>
      <dc:creator>MaheshGupta</dc:creator>
      <dc:date>2019-08-30T11:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30866#M22429</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;@Prabhu4284 When I run Notebook B (which defines a function) it is still not defined in Notebook A. Are you sure we can import all things (functions, variables, etc.)? It appears from the Databricks documentation that only strings can be shared between Notebooks and pointers to data.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 00:08:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30866#M22429</guid>
      <dc:creator>reportmort</dc:creator>
      <dc:date>2019-11-11T00:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30867#M22430</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I declared a function in notebook commonFunction and called it from other function just by giving this command:&lt;/P&gt;
&lt;P&gt;%run ./CommonFunction&lt;/P&gt;
&lt;P&gt;I went ahead and used the function defiend in other notebook&lt;/P&gt;
&lt;P&gt;infact o could access the variable defined in other notebook and vise versa too.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 14:53:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30867#M22430</guid>
      <dc:creator>ashok_k_gupta12</dc:creator>
      <dc:date>2020-10-03T14:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30868#M22431</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://youtu.be/QpsSYxRg8G8" target="test_blank"&gt;https://youtu.be/QpsSYxRg8G8&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 19:55:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30868#M22431</guid>
      <dc:creator>ashok_k_gupta12</dc:creator>
      <dc:date>2020-10-03T19:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30869#M22432</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I have a programming background so restarting my kernel every and running things top to bottom was always common sense to me. I do agree though that it can be misleading and people may not make that assumption. I think one flaw with his programming style at the end that notebooks solve is having the history of how you checked your data throughout the process.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 05:22:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/30869#M22432</guid>
      <dc:creator>Makeetelich92</dc:creator>
      <dc:date>2021-06-10T05:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run one notebook from another notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/36028#M26021</link>
      <description>&lt;P&gt;Of course you can, in your primary notebook, use the %run magic command followed by the path or name of the notebook file you want to run, like this:&lt;/P&gt;&lt;P&gt;%run /path/to/other_notebook.ipynb&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 23:16:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-i-run-one-notebook-from-another-notebook/m-p/36028#M26021</guid>
      <dc:creator>carlitoscanas</dc:creator>
      <dc:date>2023-06-28T23:16:07Z</dc:date>
    </item>
  </channel>
</rss>

