<?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 pass parameters to notebook to be used in %%configure cell in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-pass-parameters-to-notebook-to-be-used-in-configure-cell/m-p/4971336#M14886</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This just resolved a real issue for me.&amp;nbsp; I did have to add -f to the configure code line:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%%configure -f&lt;/LI-CODE&gt;&lt;P&gt;It even works when the notebook already has a default Lakehouse mapped.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jan 2026 14:53:53 GMT</pubDate>
    <dc:creator>Toadie</dc:creator>
    <dc:date>2026-01-30T14:53:53Z</dc:date>
    <item>
      <title>How to pass parameters to notebook to be used in %%configure cell</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-pass-parameters-to-notebook-to-be-used-in-configure-cell/m-p/3822314#M1502</link>
      <description>&lt;P&gt;I want to configure the default lakehouse of my notebook programatically, I want the default lakehouse to be passed through parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found a way to configure the default lakehouse with %%configure script:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="amaaiia_0-1712651777267.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1074971i4CCB4B80794DF6CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="amaaiia_0-1712651777267.png" alt="amaaiia_0-1712651777267.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It works if I directly write the lakehouse name, id and workspace id in the same cell, and I run this cell the first one before the rest of the cells. But I want these three values to be passed by parameter, so I need to run parameters cell before %%configure cell, and if I do that, I get and error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MagicUsageError: The current running Livy session must be restarted for the config changes to take effect. Specify the argument "-f" to force restarting Livy session. Any variables stored in memory will be cleared.&lt;/LI-CODE&gt;&lt;P&gt;So, how can I pass the parameters to %%configure cell if I have to run %%configure cell before any other to work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 08:39:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-pass-parameters-to-notebook-to-be-used-in-configure-cell/m-p/3822314#M1502</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2024-04-09T08:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameters to notebook to be used in %%configure cell</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-pass-parameters-to-notebook-to-be-used-in-configure-cell/m-p/3824058#M1507</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/686932"&gt;@amaaiia&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use Parameterized session configuration for this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook#parameterized-session-configuration-from-a-pipeline" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook#parameterized-session-configuration-from-a-pipeline&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is an example code snippet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%%configure  

{ 
    "defaultLakehouse": { 
        "name": {
                  "parameterName": "defaultLakehouseName",
                  "defaultValue": "FourthLakehouse"
        },
        "id": {
                  "parameterName": "defaultLakehouseId",
                  "defaultValue": "773faa37-826f-4f9b-830f-e2a7a23e3903"
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 14:35:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-pass-parameters-to-notebook-to-be-used-in-configure-cell/m-p/3824058#M1507</guid>
      <dc:creator>Expiscornovus</dc:creator>
      <dc:date>2024-04-09T14:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameters to notebook to be used in %%configure cell</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-pass-parameters-to-notebook-to-be-used-in-configure-cell/m-p/3824128#M1508</link>
      <description>&lt;P&gt;It works!!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 15:08:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-pass-parameters-to-notebook-to-be-used-in-configure-cell/m-p/3824128#M1508</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2024-04-09T15:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameters to notebook to be used in %%configure cell</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-pass-parameters-to-notebook-to-be-used-in-configure-cell/m-p/4067509#M3333</link>
      <description>&lt;P&gt;Is there a way to supply additional parameteres for use later on in the notebook?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 17:02:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-pass-parameters-to-notebook-to-be-used-in-configure-cell/m-p/4067509#M3333</guid>
      <dc:creator>Ben1489</dc:creator>
      <dc:date>2024-07-29T17:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameters to notebook to be used in %%configure cell</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-pass-parameters-to-notebook-to-be-used-in-configure-cell/m-p/4971336#M14886</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This just resolved a real issue for me.&amp;nbsp; I did have to add -f to the configure code line:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%%configure -f&lt;/LI-CODE&gt;&lt;P&gt;It even works when the notebook already has a default Lakehouse mapped.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 14:53:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-pass-parameters-to-notebook-to-be-used-in-configure-cell/m-p/4971336#M14886</guid>
      <dc:creator>Toadie</dc:creator>
      <dc:date>2026-01-30T14:53:53Z</dc:date>
    </item>
  </channel>
</rss>

