<?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: Runtime Lakehouse Switch between multiple notebooks in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5191316#M16482</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1597754"&gt;@hareshparab-408&lt;/a&gt;,&lt;BR /&gt;You can try below dynamic options also to achive your desired workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Don't switch attachments; use full onelake paths&lt;/P&gt;&lt;P&gt;Keep your lh_common attached for the config and use dynamic paths to read/write for the client data for example,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;client_id = "1" # from config table&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;lh_path = f"abfss://{workspace_id}@onelake.dfs.fabric.microsoft.com/{lakehouse_id}/Tables/YourTable"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;df = spark.read.format("delta").load(lh_path)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or use the SQL endpoint / Spark.SQL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT * FROM 'ws1'.'lh_1'.'dbo'.'YourTable'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Create parameterized pipeline for each run.&lt;/P&gt;&lt;P&gt;Create commom Data pipeline in the workspace you want &lt;STRONG&gt;e.g ws-common&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Read config from the&amp;nbsp;lh_common&lt;/LI&gt;&lt;LI&gt;For client data processing use same notebook activity with parametrs such as workspace_name, lakehouse_name,table_path&lt;/LI&gt;&lt;LI&gt;Notebook will pick the update parameters value and execute by build path dynamically (As same as above option)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is what you need, please consider as an accepted solution if helps or give some kudos.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jun 2026 11:33:52 GMT</pubDate>
    <dc:creator>Lodha_Jaydeep</dc:creator>
    <dc:date>2026-06-01T11:33:52Z</dc:date>
    <item>
      <title>Runtime Lakehouse Switch between multiple notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5190857#M16466</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I do have workspace: ws-common, ws1, ws2 and lakehouse: lh_common, lh_1, lh_2.&lt;BR /&gt;consider ws-common is common so i am trying to keep it like this where there is common pipeline and common code.&amp;nbsp;&lt;BR /&gt;and if i have to process clients data i.e (ws1,lh_1), (ws2,lh_2)&amp;nbsp; i will trigger 2 instace of common pipeline where i will read all clients configs from lh_common and then each instance will run common notebooks and process clients data.&lt;BR /&gt;&lt;BR /&gt;so i have created one notebook where i usually attach defaultlakehouse lh_common and read the config data such as which notebook to process (notebook will be only in common_wokspaces, no notebooks are created in client workspaces). from the current notebook i read config and call child notebooks to process now in order to process i need to attach lakehouse of that particular client but it should be dynamic. currently i am not able to do that&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2026 14:35:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5190857#M16466</guid>
      <dc:creator>hareshparab-408</dc:creator>
      <dc:date>2026-05-30T14:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Lakehouse Switch between multiple notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5190863#M16467</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1597754"&gt;@hareshparab-408&lt;/a&gt;,&lt;BR /&gt;&lt;SPAN&gt;Fabric binds a notebook to a defaultLakehouse at session start, so the Lakehouse context cannot be changed during execution.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Keep lh_common attached for config.&lt;BR /&gt;Pass client_workspace and client_lakehouse as parameters for each run, then use those parameters to read and write client data via OneLake paths.&lt;BR /&gt;&lt;/SPAN&gt;Docs:&lt;BR /&gt;&lt;A title="Develop, execute, and manage Microsoft Fabric notebooks" href="https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook" target="_self"&gt;Develop, execute, and manage Microsoft Fabric notebooks&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2026 15:22:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5190863#M16467</guid>
      <dc:creator>Olufemi7</dc:creator>
      <dc:date>2026-05-30T15:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Lakehouse Switch between multiple notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5191049#M16471</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1597754"&gt;@hareshparab-408&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is also another option where you don't have to attach a Lakehouse to a notebook, but when you do that you then have to specify the workspace and lake house goods which can be parameter driven in order to write successfully to the lake house tables using the ABFSS path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;# Using GUIDs (most reliable)
abfss_path = "abfss://&amp;lt;workspace_id&amp;gt;@onelake.dfs.fabric.microsoft.com/&amp;lt;lakehouse_id&amp;gt;/Tables/my_table"

# Or using names (if no special chars/spaces)
abfss_path = "abfss://MyWorkspace@onelake.dfs.fabric.microsoft.com/MyLakehouse.Lakehouse/Tables/my_table"&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 31 May 2026 22:01:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5191049#M16471</guid>
      <dc:creator>GilbertQ</dc:creator>
      <dc:date>2026-05-31T22:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Lakehouse Switch between multiple notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5191316#M16482</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1597754"&gt;@hareshparab-408&lt;/a&gt;,&lt;BR /&gt;You can try below dynamic options also to achive your desired workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Don't switch attachments; use full onelake paths&lt;/P&gt;&lt;P&gt;Keep your lh_common attached for the config and use dynamic paths to read/write for the client data for example,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;client_id = "1" # from config table&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;lh_path = f"abfss://{workspace_id}@onelake.dfs.fabric.microsoft.com/{lakehouse_id}/Tables/YourTable"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;df = spark.read.format("delta").load(lh_path)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or use the SQL endpoint / Spark.SQL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT * FROM 'ws1'.'lh_1'.'dbo'.'YourTable'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Create parameterized pipeline for each run.&lt;/P&gt;&lt;P&gt;Create commom Data pipeline in the workspace you want &lt;STRONG&gt;e.g ws-common&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Read config from the&amp;nbsp;lh_common&lt;/LI&gt;&lt;LI&gt;For client data processing use same notebook activity with parametrs such as workspace_name, lakehouse_name,table_path&lt;/LI&gt;&lt;LI&gt;Notebook will pick the update parameters value and execute by build path dynamically (As same as above option)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is what you need, please consider as an accepted solution if helps or give some kudos.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2026 11:33:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5191316#M16482</guid>
      <dc:creator>Lodha_Jaydeep</dc:creator>
      <dc:date>2026-06-01T11:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Lakehouse Switch between multiple notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5191421#M16487</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1597754"&gt;@hareshparab-408&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option is to use the 4 part identifier to reference the lakehouse, this should work regardless of the lakehouse context you have (as long as you have a context)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;use `workspace name`.lakehouse.schema.table&lt;BR /&gt;use `` if your workspace name has spaces.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2026 13:54:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5191421#M16487</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2026-06-01T13:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Lakehouse Switch between multiple notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5192226#M16506</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1597754"&gt;@hareshparab-408&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you for reaching out to Microsoft Fabric Community and Thanks to&lt;SPAN&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1340679"&gt;@tayloramy&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/38"&gt;@GilbertQ&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/486347"&gt;@Lodha_Jaydeep&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/843006"&gt;@Olufemi7&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for Sharing valuable insights.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Just 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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Best Regards,&lt;/P&gt;
&lt;P&gt;Abdul Rafi.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 04:04:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5192226#M16506</guid>
      <dc:creator>v-moharafi-msft</dc:creator>
      <dc:date>2026-06-03T04:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Lakehouse Switch between multiple notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5194126#M16576</link>
      <description>&lt;P data-end="66" data-start="61"&gt;Hi&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1597754" target="_blank"&gt;@hareshparab-408&lt;/A&gt;&amp;nbsp;&amp;nbsp;,&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-end="197" data-start="73"&gt;Could you please confirm if the issue has been resolved? If not, feel free to reach out if you have any further questions.&lt;/P&gt;
&lt;P data-end="292" data-start="204"&gt;Your update would be helpful for other members who may face a similar issue.&lt;/P&gt;
&lt;P data-end="292" data-start="204"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-is-last-node="" data-end="309" data-start="299"&gt;Best Regards,&lt;/P&gt;
&lt;P data-is-last-node="" data-end="309" data-start="299"&gt;Abdul Rafi&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2026 04:11:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Runtime-Lakehouse-Switch-between-multiple-notebooks/m-p/5194126#M16576</guid>
      <dc:creator>v-moharafi-msft</dc:creator>
      <dc:date>2026-06-08T04:11:27Z</dc:date>
    </item>
  </channel>
</rss>

