<?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 Parameterizing a notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Parameterizing-a-notebook/m-p/4025536#M2839</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd like to know if a notebook could be parameterized and how.&lt;/P&gt;&lt;P&gt;Any suggests to me, please? Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2024 16:55:23 GMT</pubDate>
    <dc:creator>pmscorca</dc:creator>
    <dc:date>2024-07-04T16:55:23Z</dc:date>
    <item>
      <title>Parameterizing a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Parameterizing-a-notebook/m-p/4025536#M2839</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd like to know if a notebook could be parameterized and how.&lt;/P&gt;&lt;P&gt;Any suggests to me, please? Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 16:55:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Parameterizing-a-notebook/m-p/4025536#M2839</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2024-07-04T16:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterizing a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Parameterizing-a-notebook/m-p/4025900#M2840</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/719515"&gt;@pmscorca&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you can parameterize notebooks in Fabric Lakehouse, I have two ways here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. You can pass parameters from a data pipeline to a notebook in Fabric Lakehouse:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL class="lia-list-style-type-lower-roman"&gt;
&lt;LI&gt;Create a notebook with parameters:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the notebook, define the parameters you want. Make sure to select the Toggle Parameter Cell option under More Commands.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vhuijieymsft_0-1720142680713.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1127082i4A27393323BA4998/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vhuijieymsft_0-1720142680713.png" alt="vhuijieymsft_0-1720142680713.png" /&gt;&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="vhuijieymsft_1-1720142680715.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1127083iC4D6C3B4201B16F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vhuijieymsft_1-1720142680715.png" alt="vhuijieymsft_1-1720142680715.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL class="lia-list-style-type-lower-roman" start="2"&gt;
&lt;LI&gt;Create a pipeline for the Notebook activity:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the pipeline, add a Notebook activity and select the notebook you created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Settings tab of the Notebook activity, under the Parameters section, add the parameters you want to pass to the notebook. Make sure the parameter names match the parameter names in the notebook.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vhuijieymsft_2-1720142692468.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1127084i95A3CC1FB5E74BC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vhuijieymsft_2-1720142692468.png" alt="vhuijieymsft_2-1720142692468.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. You can also configure the default lakehouse programmatically by passing parameters to the cell:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Define the parameters in the notebook:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# Parameters
defaultLakehouseName = "MyLakehouse"
defaultLakehouseId = "12345"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set the parameters using %%configure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;%%configure
{
    "defaultLakehouse": {
        "name": {"parameterName": "defaultLakehouseName", "defaultValue": "MyLakehouse"},
        "id": {"parameterName": "defaultLakehouseId", "defaultValue": "12345"}
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;For more information on parameterized session configuration, see the following documentation:&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;Develop, execute, and manage notebooks - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 01:27:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Parameterizing-a-notebook/m-p/4025900#M2840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T01:27:24Z</dc:date>
    </item>
  </channel>
</rss>

