<?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 run multiple code files from a Folder in a Notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4399510#M7030</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2025 07:03:04 GMT</pubDate>
    <dc:creator>v-nmadadi-msft</dc:creator>
    <dc:date>2025-02-07T07:03:04Z</dc:date>
    <item>
      <title>How to run multiple code files from a Folder in a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4388969#M6734</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hello all,&lt;BR /&gt;I have folder named "Functions" in my workspace containing 5 Python notebooks. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to run these notebooks together sequetially, but it has to been read from&amp;nbsp;&amp;nbsp;"Functions" Folder&lt;BR /&gt;I have tried&amp;nbsp;mssparkutils.notebook.runMultiple()&amp;nbsp;function&lt;/SPAN&gt;&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="nilendraFabric_0-1738278577285.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1232945iAB3EAA569E3876C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nilendraFabric_0-1738278577285.png" alt="nilendraFabric_0-1738278577285.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 23:10:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4388969#M6734</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-01-30T23:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple code files from a Folder in a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4388996#M6735</link>
      <description>&lt;P&gt;If my understanding is correct, currently folders are just a way of organising items in the front end.&amp;nbsp; They certainly aren't saved in source control (and cause merry hell when you deploy to a new workspace)&lt;BR /&gt;You could manually build a Directed Acyclic Graph using .runmultiple.&lt;BR /&gt;If I was set on doing things automatically from a notebook, I think what I might consider doing is;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;using a notebook naming convention and prefix my function notebooks "Funct 01 - " (increasing the number each time&lt;/LI&gt;
&lt;LI&gt;use sempy with FabricRESTClient and the API to list all notebooks in the workspace, filter on the prefix, sort, and stick the names into a list&lt;/LI&gt;
&lt;LI&gt;run a for loop over the list using notebookutils.notebook.run() to execute them one after the other.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 31 Jan 2025 00:21:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4388996#M6735</guid>
      <dc:creator>spencer_sa</dc:creator>
      <dc:date>2025-01-31T00:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple code files from a Folder in a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4390928#M6798</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp; ,&lt;BR /&gt;&lt;BR /&gt;As mentioned by&amp;nbsp;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/679603"&gt;@spencer_sa&lt;/a&gt;&amp;nbsp;&amp;nbsp;folders in fabric are just a way of organizing items in workspace so as to reduce the visual clutter.&lt;BR /&gt;If you want to run the notebooks which exist in one folder sequentially then make sure the notebooks are named exactly as the folder name suffixed with appropriate numbers.&lt;BR /&gt;Then run the mssparkutils.notebook.runMultiple()&amp;nbsp;function over them.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you find this post helpful, please mark it as an "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" and consider giving a&amp;nbsp;&lt;STRONG&gt;KUDOS.&lt;/STRONG&gt;&lt;BR /&gt;Thanks and Regards&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2025 13:49:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4390928#M6798</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2025-02-01T13:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple code files from a Folder in a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4390931#M6799</link>
      <description>&lt;P&gt;The requirement is that there are multiple module. And each module has different scripts.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;existing setup is like Function module have all the functions and so on.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;so customer is not looking to change the script name.&amp;nbsp;&lt;BR /&gt;the idea is to place them the way they are in existing non Fabric system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/679603"&gt;@spencer_sa&lt;/a&gt;&amp;nbsp;n&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/882991"&gt;@v-nmadadi-msft&lt;/a&gt;&amp;nbsp;for the reply though&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2025 14:15:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4390931#M6799</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-02-01T14:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple code files from a Folder in a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4390958#M6802</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try the %run command instead&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndersASorensen_0-1738424619599.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1233404i71852641031837D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndersASorensen_0-1738424619599.png" alt="AndersASorensen_0-1738424619599.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2025 15:43:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4390958#M6802</guid>
      <dc:creator>AndersASorensen</dc:creator>
      <dc:date>2025-02-01T15:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple code files from a Folder in a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4390961#M6803</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/423657"&gt;@AndersASorensen&lt;/a&gt;&amp;nbsp; %run command was not working in this scenario.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;runmultiple was the only option, but seems like it can't take folder path&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2025 15:49:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4390961#M6803</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-02-01T15:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple code files from a Folder in a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4393462#M6896</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp; ,&lt;BR /&gt;Thanks for reaching out to the Microsoft fabric community forum.&lt;BR /&gt;If that is the requirement then the possible solution you could use is to use runmultiple() using DAG&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-utilities#reference-run-multiple-notebooks-in-parallel" target="_blank"&gt;NotebookUtils (former MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It may be painful to hardcode notebook paths for all the existing notebooks but this will get what you want i.e to run all the notebooks existing in one folder&lt;BR /&gt;Example taken from the mentioned document:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# run multiple notebooks with parameters
DAG = {
    "activities": [
        {
            "name": "NotebookSimple", # activity name, must be unique
            "path": "NotebookSimple", # notebook path
            "timeoutPerCellInSeconds": 90, # max timeout for each cell, default to 90 seconds
            "args": {"p1": "changed value", "p2": 100}, # notebook parameters
        },
        {
            "name": "NotebookSimple2",
            "path": "NotebookSimple2",
            "timeoutPerCellInSeconds": 120,
            "args": {"p1": "changed value 2", "p2": 200}
        },
        {
            "name": "NotebookSimple2.2",
            "path": "NotebookSimple2",
            "timeoutPerCellInSeconds": 120,
            "args": {"p1": "changed value 3", "p2": 300},
            "retry": 1,
            "retryIntervalInSeconds": 10,
            "dependencies": ["NotebookSimple"] # list of activity names that this activity depends on
        }
    ],
    "timeoutInSeconds": 43200, # max timeout for the entire DAG, default to 12 hours
    "concurrency": 50 # max number of notebooks to run concurrently, default to 50
}
notebookutils.notebook.runMultiple(DAG, {"displayDAGViaGraphviz": False})&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;If you find this post helpful, please mark it as an "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" and consider giving a&amp;nbsp;&lt;STRONG&gt;KUDOS.&lt;/STRONG&gt;&lt;BR /&gt;Thanks and Regards&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 05:22:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4393462#M6896</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2025-02-04T05:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple code files from a Folder in a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4399510#M7030</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 07:03:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4399510#M7030</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2025-02-07T07:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple code files from a Folder in a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4406236#M7144</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If the community members response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;BR /&gt;&lt;BR /&gt;Thanks and regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 05:15:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4406236#M7144</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2025-02-12T05:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple code files from a Folder in a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4413115#M7258</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the community members for the issue worked. If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks and regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 06:10:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-multiple-code-files-from-a-Folder-in-a-Notebook/m-p/4413115#M7258</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2025-02-17T06:10:30Z</dc:date>
    </item>
  </channel>
</rss>

