<?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: VSCode - Connecting to lakehouse and coding aid in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3493728#M1102</link>
    <description>&lt;P&gt;hi&amp;nbsp;@Anonymous&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your swift reply. I took a bit longer over the weekend.&lt;/P&gt;&lt;P&gt;The first problem seems to be solved for the "defaultLakehouse", i.e., I am able to query tables from the lakehouse configured in fabric, shown next to the two arrows. However, I have two lakehouses currently referenced in my notebook (Raw data and processed data). I would like to access both from the notebook, however this does not seem possible, as I still get the similar error for the referenced lakehouse, which is not the default (&lt;SPAN&gt;java.lang.ClassNotFoundException: &lt;SPAN&gt;Failed to find data source: RawData. Please find packages at).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kjellvs_1-1698146547652.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/985724i98E49B1AE2A74304/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kjellvs_1-1698146547652.png" alt="kjellvs_1-1698146547652.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(metadata of the notebook according to vscode).&lt;/P&gt;&lt;P&gt;Is there a way to access both?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides this, I was also running into an issue where the kernel wasn't properly initialized. I am checking this by printing the "spark" variable. Restarting kernal/vscode sometimes was necessary for complete fix. If there are any other ways to fix this, let me know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the extension, you are right, I am using this one. I added the following at the top to make the extension also understand the predefined variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from pyspark.sql import SparkSession
spark: SparkSession &lt;/LI-CODE&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;P&gt;Hope you can help me further.&lt;/P&gt;&lt;P&gt;Kjell&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 24 Oct 2023 11:27:50 GMT</pubDate>
    <dc:creator>kjellvs</dc:creator>
    <dc:date>2023-10-24T11:27:50Z</dc:date>
    <item>
      <title>VSCode - Connecting to lakehouse and coding aid</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3488941#M1099</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When running simple code in VSCode using the Synapse-spark-kernel, i run into the following issue when trying to access data from a lakehouse table. The exact same code does work in the fabric environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;spark_df = spark.sql("select * from LakeHouse.table")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;java.lang.ClassNotFoundException: &lt;/SPAN&gt;&lt;SPAN&gt;Failed to find data source: LakeHouse. Please find packages at &lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://spark.apache.org/third-party-projects.html" target="_blank"&gt;https://spark.apache.org/third-party-projects.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I connect to the lakehouse in local VSCode via the synapse-spark-kernel?&lt;BR /&gt;&lt;BR /&gt;Furthermore, I was wondering if there are any recommended VSCode extensions for code validation and aid (like intellisense), that work with the synapse-spark-kernel?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Kjell&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2023 09:02:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3488941#M1099</guid>
      <dc:creator>kjellvs</dc:creator>
      <dc:date>2023-10-21T09:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode - Connecting to lakehouse and coding aid</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3489001#M1100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/633984"&gt;@kjellvs&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks for using Fabric Community.&lt;/P&gt;
&lt;P&gt;Apologies for the issue you have been facing. We&amp;nbsp;need to add lakehouse into the notebook in Fabric portal, then you can use this lakehouse in Synapse VScode extension without any error.&lt;BR /&gt;You can follow the below steps:&lt;BR /&gt;&lt;BR /&gt;1) Add the lakehouse to the respective 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-1697886580850.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/984405i5162BF1F93FC5710/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_0-1697886580850.png" alt="vnikhilanmsft_0-1697886580850.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnikhilanmsft_3-1697886964424.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/984410i65BF195A702FB56B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_3-1697886964424.png" alt="vnikhilanmsft_3-1697886964424.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2) After adding the lakehouse in Fabric portal, please download the Notebook again,&amp;nbsp;because the notebook's metadata has changed, and VS Code extension can't get the change. So download the notebook once again.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;3) Try running the code now in your notebook.&amp;nbsp;&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_2-1697886812052.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/984408iA3E31B6174D22813/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_2-1697886812052.png" alt="vnikhilanmsft_2-1697886812052.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you are using python,&amp;nbsp;you can install python extension which provides excellent language services and auto complete capability.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnikhilanmsft_4-1697887040441.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/984411i3E4CF217D2731599/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_4-1697887040441.png" alt="vnikhilanmsft_4-1697887040441.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this helps. Please let us know if you have any further queries. Glad to help.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2023 11:19:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3489001#M1100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-21T11:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode - Connecting to lakehouse and coding aid</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3491017#M1101</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/633984"&gt;@kjellvs&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We haven’t heard from you on the last response and was just checking back to see if your query has been resolved. Please let us know if you have any further queries.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 09:52:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3491017#M1101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-23T09:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode - Connecting to lakehouse and coding aid</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3493728#M1102</link>
      <description>&lt;P&gt;hi&amp;nbsp;@Anonymous&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your swift reply. I took a bit longer over the weekend.&lt;/P&gt;&lt;P&gt;The first problem seems to be solved for the "defaultLakehouse", i.e., I am able to query tables from the lakehouse configured in fabric, shown next to the two arrows. However, I have two lakehouses currently referenced in my notebook (Raw data and processed data). I would like to access both from the notebook, however this does not seem possible, as I still get the similar error for the referenced lakehouse, which is not the default (&lt;SPAN&gt;java.lang.ClassNotFoundException: &lt;SPAN&gt;Failed to find data source: RawData. Please find packages at).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kjellvs_1-1698146547652.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/985724i98E49B1AE2A74304/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kjellvs_1-1698146547652.png" alt="kjellvs_1-1698146547652.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(metadata of the notebook according to vscode).&lt;/P&gt;&lt;P&gt;Is there a way to access both?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides this, I was also running into an issue where the kernel wasn't properly initialized. I am checking this by printing the "spark" variable. Restarting kernal/vscode sometimes was necessary for complete fix. If there are any other ways to fix this, let me know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the extension, you are right, I am using this one. I added the following at the top to make the extension also understand the predefined variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from pyspark.sql import SparkSession
spark: SparkSession &lt;/LI-CODE&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;P&gt;Hope you can help me further.&lt;/P&gt;&lt;P&gt;Kjell&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Oct 2023 11:27:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3493728#M1102</guid>
      <dc:creator>kjellvs</dc:creator>
      <dc:date>2023-10-24T11:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode - Connecting to lakehouse and coding aid</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3495530#M1103</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/633984"&gt;@kjellvs&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Apologies for the delay in response. This error is expected behavior with the existing version of Fabric lakehouse. I filed a bug for reading reference lakehouse in VS Code&amp;nbsp;and the team is working on fixing the issue ASAP.&lt;BR /&gt;We are reaching out to the internal team to get more information related to ETA and will get back to you as soon as we have an update.&lt;BR /&gt;Stay tuned for more updates.&lt;SPAN&gt;&lt;BR /&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 06:59:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3495530#M1103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-25T06:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode - Connecting to lakehouse and coding aid</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3499308#M1104</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/633984"&gt;@kjellvs&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. Please let me know if you have any further queries.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 15:04:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3499308#M1104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-26T15:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode - Connecting to lakehouse and coding aid</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3499321#M1105</link>
      <description>&lt;P&gt;hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as I understood from your previous response, there is no resolution yet as your team is working on fixing the issue ASAP, and that I should stay tuned. I guess this answers my questions, should I close the ticket in the mean time? Where could I find an update on this once this has progressed?&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Kjell&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 15:06:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3499321#M1105</guid>
      <dc:creator>kjellvs</dc:creator>
      <dc:date>2023-10-26T15:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode - Connecting to lakehouse and coding aid</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3499329#M1106</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/633984"&gt;@kjellvs&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I will update you once I receive the information from the internal team. You can go ahead and close the ticket.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 15:09:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3499329#M1106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-26T15:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode - Connecting to lakehouse and coding aid</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3548955#M1107</link>
      <description>&lt;P&gt;I am not the OP but the issue is not solved yet.&lt;BR /&gt;Your suggested solution works if there is only 1 lakehouse reference in the notebook and if its marked as default.&lt;BR /&gt;Like OP described, in a notebook I am trying to query data from 2 different lakehouse within the same workspace.&lt;BR /&gt;&lt;BR /&gt;For example I have this 2 lakehouse registered on my notebook in fabric.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="y0m0_0-1700739390940.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1001022iC07FC700B911B228/image-size/medium?v=v2&amp;amp;px=400" role="button" title="y0m0_0-1700739390940.png" alt="y0m0_0-1700739390940.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This works as expected from the web editor.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="y0m0_3-1700740547630.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1001039iCB24AF8A94170AAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="y0m0_3-1700740547630.png" alt="y0m0_3-1700740547630.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;the same is not working from VSCode.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 12:18:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3548955#M1107</guid>
      <dc:creator>y0m0</dc:creator>
      <dc:date>2023-11-23T12:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode - Connecting to lakehouse and coding aid</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3548960#M1108</link>
      <description>&lt;P&gt;as mentioned by support;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"I will update you once I receive the information from the internal team. You can go ahead and close the ticket."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 12:23:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/VSCode-Connecting-to-lakehouse-and-coding-aid/m-p/3548960#M1108</guid>
      <dc:creator>kjellvs</dc:creator>
      <dc:date>2023-11-23T12:23:23Z</dc:date>
    </item>
  </channel>
</rss>

