<?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: VS Code notebook failure - Spark in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VS-Code-notebook-failure-Spark/m-p/3957041#M2280</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here is the screenshot of the logs that i can see.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MMBI_0-1716968525418.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1107370i18E55D1CB9BFF388/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MMBI_0-1716968525418.png" alt="MMBI_0-1716968525418.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also how do I stop the Spark session in notebook and run in VS code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 07:43:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-29T07:43:30Z</dc:date>
    <item>
      <title>VS Code notebook failure - Spark</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VS-Code-notebook-failure-Spark/m-p/3955460#M2260</link>
      <description>&lt;P&gt;I want to integrate VS code with my Fabric workspace and I have been able to successfully do it. I have followed all the pre-requisites mentioned in this link -&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/setup-vs-code-extension" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/setup-vs-code-extension&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I try to run any spark related commands in VS code, I get an error - &lt;STRONG&gt;"&lt;SPAN class=""&gt;AttributeError&lt;/SPAN&gt;&lt;SPAN class=""&gt;: 'NoneType' object has no attribute 'sql'" &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;and&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;"spark is not defined Pylance".&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;However these commands are successfully running in Fabric.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;My kernel specification is - &lt;STRONG&gt;fabric-synapse-runtime-1-2(Python 3.10.12)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;As a quick fix, I tried to reinstall VS Code and the extension but unfortunately nothing worked.&amp;nbsp;&lt;BR /&gt;Would appreciate any quick help or solution on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 14:57:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VS-Code-notebook-failure-Spark/m-p/3955460#M2260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-28T14:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: VS Code notebook failure - Spark</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VS-Code-notebook-failure-Spark/m-p/3956632#M2274</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for using Fabric Community.&lt;BR /&gt;Please follow these steps:&lt;BR /&gt;1) Right click the ipython notebook&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="vnikhilanmsft_0-1716961444941.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1107228i6AF5065B98251066/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_0-1716961444941.png" alt="vnikhilanmsft_0-1716961444941.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Reveal in File Explorer&lt;BR /&gt;&lt;BR /&gt;2) Open the python log file:&amp;nbsp;../../../logs/${NOTEBOOK_ARTIFACT_ID}/PySparkLighter.log&amp;nbsp;and check the session failure reason&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="vnikhilanmsft_1-1716961444722.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1107227iBC0FDD50E42C38AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_1-1716961444722.png" alt="vnikhilanmsft_1-1716961444722.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please attach the screenshot of the error here to understand what is happening.&lt;BR /&gt;&lt;BR /&gt;You can also try stopping the spark session in the Notebook and try running in VS code.&amp;nbsp;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 05:44:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VS-Code-notebook-failure-Spark/m-p/3956632#M2274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-29T05:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: VS Code notebook failure - Spark</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VS-Code-notebook-failure-Spark/m-p/3957041#M2280</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here is the screenshot of the logs that i can see.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MMBI_0-1716968525418.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1107370i18E55D1CB9BFF388/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MMBI_0-1716968525418.png" alt="MMBI_0-1716968525418.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also how do I stop the Spark session in notebook and run in VS code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 07:43:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VS-Code-notebook-failure-Spark/m-p/3957041#M2280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-29T07:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: VS Code notebook failure - Spark</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VS-Code-notebook-failure-Spark/m-p/3968215#M2388</link>
      <description>&lt;P&gt;The solution that worked for me is - Re-installing VS Code by clearing the cache files as well during uninstallation.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 09:41:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VS-Code-notebook-failure-Spark/m-p/3968215#M2388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-03T09:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: VS Code notebook failure - Spark</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VS-Code-notebook-failure-Spark/m-p/3968237#M2389</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Glad that your query got resolved. Please continue using Fabric Community for any help regarding your queries.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 09:47:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VS-Code-notebook-failure-Spark/m-p/3968237#M2389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-03T09:47:31Z</dc:date>
    </item>
  </channel>
</rss>

