<?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: Get the output of a pipeline with a notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4108759#M3687</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;pipeline and&lt;/SPAN&gt; create the destination to a lakehouse and then use notebook to query the results.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/create-first-pipeline-with-sample-data" target="_blank"&gt;Create your first data pipeline to copy data - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/how-to-use-notebook" target="_blank"&gt;How to use notebooks - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;BR /&gt;Gao&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#008080"&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#008080"&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;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.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#008080"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener nofollow noreferrer"&gt;How to get your questions answered quickly&lt;/A&gt;&amp;nbsp;--&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener nofollow noreferrer"&gt;&amp;nbsp;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 08:36:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-08-20T08:36:28Z</dc:date>
    <item>
      <title>Get the output of a pipeline with a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4108545#M3681</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need to do the opposite of this ? How can i get the output of a pipeline data factory in my notebook ?&lt;/P&gt;&lt;P&gt;Thank you for your help&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="BendeLyon_69_0-1724137597601.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1153814i00067C1FFA3C0C8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BendeLyon_69_0-1724137597601.png" alt="BendeLyon_69_0-1724137597601.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 07:06:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4108545#M3681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-20T07:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get the output of a pipeline with a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4108759#M3687</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;pipeline and&lt;/SPAN&gt; create the destination to a lakehouse and then use notebook to query the results.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/create-first-pipeline-with-sample-data" target="_blank"&gt;Create your first data pipeline to copy data - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/how-to-use-notebook" target="_blank"&gt;How to use notebooks - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;BR /&gt;Gao&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#008080"&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#008080"&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;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.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#008080"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener nofollow noreferrer"&gt;How to get your questions answered quickly&lt;/A&gt;&amp;nbsp;--&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener nofollow noreferrer"&gt;&amp;nbsp;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 08:36:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4108759#M3687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-20T08:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get the output of a pipeline with a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4108765#M3688</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not 100% sure what you actually want to do but I assume you want to set or calculate some sort of values within a data factory pipeline and then hand these values over to an executed notebook.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is the fact I think the easiest way is to use&amp;nbsp; parameter cells within the notebook, see the MSFT documentation&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook#designate-a-parameters-cell" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook#designate-a-parameters-cell&lt;/A&gt;&amp;nbsp;and e.g. this blog post&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Pipelines/notebook-parameter/m-p/3907708#:~:text=Step1%3A%20Create%20a%20notebook%20with,parameters%20under%20%E2%80%9Cbase%20parameters%E2%80%9D" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Data-Pipelines/notebook-parameter/m-p/3907708#:~:text=Step1%3A%20Create%20a%20notebook%20with,parameters%20under%20%E2%80%9Cbase%20parameters%E2%80%9D&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once these parameter cells are set in your notebook you can execute the notebook within the pipeline and programmatically describe the parameters that should be used for this specific run of the notebook within the pipeline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this answer solves your problem. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;If not feel free to describe your problem a bit more detailed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Martin&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 08:39:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4108765#M3688</guid>
      <dc:creator>Hofpower</dc:creator>
      <dc:date>2024-08-20T08:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get the output of a pipeline with a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4109449#M3698</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;&lt;BR /&gt;i succeed to get the output of my activity. Now i need to write this output on a table in my lakehouse.&lt;/P&gt;&lt;P&gt;Any ideas ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&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="BendeLyon_69_0-1724165432405.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1154094i87736F49468EE0EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BendeLyon_69_0-1724165432405.png" alt="BendeLyon_69_0-1724165432405.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 14:49:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4109449#M3698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-20T14:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get the output of a pipeline with a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4110648#M3704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume you want to persist calculated tables from the notebook to your lakehouse?&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that case the easiest way would be to write these tables directly within your notebook using somehing like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;df.write.mode(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"overwrite"&lt;/SPAN&gt;&lt;SPAN&gt;).format(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"delta"&lt;/SPAN&gt;&lt;SPAN&gt;).saveAsTable(delta_table_name)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;See also the documentation:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-notebook-load-data#load-data-with-an-apache-spark-api" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-notebook-load-data#load-data-with-an-apache-spark-api&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Martin&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 07:33:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4110648#M3704</guid>
      <dc:creator>Hofpower</dc:creator>
      <dc:date>2024-08-21T07:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get the output of a pipeline with a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4110757#M3706</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/629649"&gt;@Hofpower&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer, it is okay for me to write in a table of my lakehouse. But how can you get the value of the "Set Variable" activity in my notebook ? Perhaps using mssparkutils ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank for you help&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 08:43:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4110757#M3706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-21T08:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get the output of a pipeline with a notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4111173#M3709</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned in my first reply below I advise you to use parameters. You can create a "parameter cell" (see &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook#designate-a-parameters-cell" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook#designate-a-parameters-cell&lt;/A&gt; ) in the notebook with some kind of default parameters so the notebook logically would also work without executing it within a pipeline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then within the pipeline you need to set the parameter you defined in the parameter cell of the notebook within the notebook call in the pipeline (same article, a bit below &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook#assign-parameters-values-from-a-pipeline)" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook#assign-parameters-values-from-a-pipeline)&lt;/A&gt;. Set the value of the parameter to the value of the variable and then the value of the variable will be used when executing the notebook from the pipeline.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you try to use this and if yes why did it not work? Could you provide your code (anonymized if necessary) or a similar examplary code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 12:14:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Get-the-output-of-a-pipeline-with-a-notebook/m-p/4111173#M3709</guid>
      <dc:creator>Hofpower</dc:creator>
      <dc:date>2024-08-21T12:14:35Z</dc:date>
    </item>
  </channel>
</rss>

