<?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: Using Multiple %run Commands in Microsoft Fabric Notebooks in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4852396#M12950</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1272584"&gt;@Yazdan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for providing your insights. Kindly accept your response, as it will be beneficial to other community members.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Oct 2025 04:02:48 GMT</pubDate>
    <dc:creator>v-saisrao-msft</dc:creator>
    <dc:date>2025-10-17T04:02:48Z</dc:date>
    <item>
      <title>Using Multiple %run Commands in Microsoft Fabric Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4847227#M12836</link>
      <description>&lt;H3&gt;&lt;STRONG&gt;Tip&lt;/STRONG&gt;: Using Multiple %run Commands in Microsoft Fabric Notebooks&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently discovered something useful when working with &lt;STRONG&gt;multiple&lt;/STRONG&gt;&amp;nbsp;notebooks in Microsoft &lt;STRONG&gt;Fabric&lt;/STRONG&gt; using the &lt;STRONG&gt;%run&lt;/STRONG&gt; magic command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you try to load more than one notebook in the same cell like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;%run NB_Slv_Logger &lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;%run NB_Slv_Email_Configuration&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You’ll get an error saying that &lt;STRONG&gt;no other code or commands can be combined with %run&lt;/STRONG&gt;, and that &lt;STRONG&gt;no code can appear above or below the magic %run command&lt;/STRONG&gt; in the same cell.&lt;/P&gt;&lt;P&gt;Even separating them with an empty line doesn’t work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;EM&gt;%run NB_Slv_Logger &lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;%run NB_Slv_Email_Configuration&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt; Error – Fabric doesn’t allow multiple %run statements or any extra code in the same cell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;BR /&gt;Place each %run command in its &lt;STRONG&gt;own separate code cell&lt;/STRONG&gt;.&lt;BR /&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;# Cell 1&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;%run NB_Slv_Logger&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;# Cell 2&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;%run NB_Slv_Email_Configuration&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running both cells, you’ll have access to all functions, classes, and variables from both notebooks within your current notebook.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;&lt;STRONG&gt;Key takeaway&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;Each &lt;STRONG&gt;%run&lt;/STRONG&gt; must be executed independently in its own cell — &lt;STRONG&gt;no other code should exist above or below it&lt;/STRONG&gt;. Once both are run, their code is fully imported and available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps anyone integrating multiple shared notebooks (e.g., for logging, configuration, or utilities) in Fabric!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 05:02:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4847227#M12836</guid>
      <dc:creator>Yazdan</dc:creator>
      <dc:date>2025-10-10T05:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple %run Commands in Microsoft Fabric Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4847376#M12843</link>
      <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1272584"&gt;@Yazdan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%run command is used for Global Parameters in Microsoft Fabric or Equivalent to Databricks Delta Lake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BhaveshPatel_0-1760083738308.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1302766iF060C36D225036BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BhaveshPatel_0-1760083738308.png" alt="BhaveshPatel_0-1760083738308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 08:13:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4847376#M12843</guid>
      <dc:creator>BhaveshPatel</dc:creator>
      <dc:date>2025-10-10T08:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple %run Commands in Microsoft Fabric Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4848437#M12871</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1272584"&gt;@Yazdan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Have you had a chance to review the solution we shared earlier? If the issue persists, feel free to reply so we can help further.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 04:13:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4848437#M12871</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-10-13T04:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple %run Commands in Microsoft Fabric Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4851326#M12922</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1272584"&gt;@Yazdan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Checking in to see if your issue has been resolved. let us know if you still need any assistance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 05:00:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4851326#M12922</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-10-16T05:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple %run Commands in Microsoft Fabric Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4852274#M12946</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As you can see in my post, this is not a problem or issue — I just shared my finding and solution for running multiple %run commands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 21:32:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4852274#M12946</guid>
      <dc:creator>Yazdan</dc:creator>
      <dc:date>2025-10-16T21:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple %run Commands in Microsoft Fabric Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4852275#M12947</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As you can see in my post, this is not a problem or issue — I just shared my finding and solution for running multiple %run commands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 21:32:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4852275#M12947</guid>
      <dc:creator>Yazdan</dc:creator>
      <dc:date>2025-10-16T21:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple %run Commands in Microsoft Fabric Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4852396#M12950</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1272584"&gt;@Yazdan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for providing your insights. Kindly accept your response, as it will be beneficial to other community members.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 04:02:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4852396#M12950</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-10-17T04:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple %run Commands in Microsoft Fabric Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4856679#M13072</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1272584"&gt;@Yazdan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you so much for sharing this, This kind of post is incredibly valuable to the community. Definitely consider turning this into a blog post so others can benefit from your experience more easily&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Power-BI-Community-Blog/bg-p/community_blog" target="_blank"&gt;Power BI Community Blog - Microsoft Fabric Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 09:18:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Multiple-run-Commands-in-Microsoft-Fabric-Notebooks/m-p/4856679#M13072</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-10-23T09:18:43Z</dc:date>
    </item>
  </channel>
</rss>

