<?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 python project for development in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/vscode-python-project-for-development/m-p/124932#M10354</link>
    <description>&lt;P&gt;How did you solve the type error checks on `pyspark.sql `&amp;nbsp; ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;mypy doesn't create the missing stubs for that one?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jul 2025 15:10:14 GMT</pubDate>
    <dc:creator>A_N</dc:creator>
    <dc:date>2025-07-11T15:10:14Z</dc:date>
    <item>
      <title>vscode python project for development</title>
      <link>https://community.databricks.com/t5/get-started-discussions/vscode-python-project-for-development/m-p/66125#M7096</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to set up a local development environment using python / vscode / poetry. Also, linting is enabled (Microsoft pylance extension) and the&amp;nbsp;&lt;SPAN&gt;python.analysis.typeCheckingMode is set to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;strict.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are using python files for our code (.py) whith the "&lt;/SPAN&gt;&lt;SPAN&gt;# Databricks notebook source" comment at the begin. That kind of files are handled as notebooks by Databrick&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't want to connect and execute databricks command from the terminal of vscode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The question is: which modules shall I import in order to have a valid python file, withouth vscode "problems".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For instance:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;databricks&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sdk&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;runtime&lt;/SPAN&gt; &lt;SPAN&gt;as&lt;/SPAN&gt; &lt;SPAN&gt;KR&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;histogram&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;KR&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sql&lt;/SPAN&gt;&lt;SPAN&gt;("some sql")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;will raise a the following problem:&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Type of "sql" is partially unknown&lt;BR /&gt;Type of "sql" is "(sqlQuery: str, args: Dict[str, Any] | List[Unknown] | None = None, **kwargs: Any) -&amp;gt; DataFrame"PylancereportUnknownMemberType&lt;BR /&gt;(variable) spark: SparkSession&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Alexandru Stan&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 11:07:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/vscode-python-project-for-development/m-p/66125#M7096</guid>
      <dc:creator>Alexandru</dc:creator>
      <dc:date>2024-04-12T11:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: vscode python project for development</title>
      <link>https://community.databricks.com/t5/get-started-discussions/vscode-python-project-for-development/m-p/66337#M7097</link>
      <description>&lt;P&gt;Hi Alexandru,&lt;/P&gt;
&lt;P&gt;Take a look at VSCode extension for Databricks :&amp;nbsp;&lt;A href="https://marketplace.visualstudio.com/items?itemName=databricks.databricks" target="_blank"&gt;https://marketplace.visualstudio.com/items?itemName=databricks.databricks&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 12:37:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/vscode-python-project-for-development/m-p/66337#M7097</guid>
      <dc:creator>artsheiko</dc:creator>
      <dc:date>2024-04-16T12:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: vscode python project for development</title>
      <link>https://community.databricks.com/t5/get-started-discussions/vscode-python-project-for-development/m-p/66389#M7098</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/23235"&gt;@artsheiko&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;as I already said, I'm not interesting in connecting to databricks, I want just to have a valid Python workspace, when using vscode. As a matter of fact, using the extension is not possible in my projects, because the clusters are not interactive and we are not able to use PAT (blocked by our security team)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 06:11:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/vscode-python-project-for-development/m-p/66389#M7098</guid>
      <dc:creator>Alexandru</dc:creator>
      <dc:date>2024-04-17T06:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: vscode python project for development</title>
      <link>https://community.databricks.com/t5/get-started-discussions/vscode-python-project-for-development/m-p/66471#M7099</link>
      <description>&lt;P&gt;After some testing, these are the used modules.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[tool.poetry.group.dev.dependencies]
autopep8 = "^2.1.0"
mypy = "^1.9.0"
pyspark = "=3.5.1"
databricks-sdk = "^0.25.1"
databricks-connect = "^14.3.1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ignore the autopep8, which is only for code quality.&lt;/P&gt;&lt;P&gt;mypy is used only because installs the stubgen utility, which is used for some internal missig stubs&lt;BR /&gt;pyspark for the standard pyspark functionality&lt;BR /&gt;databricks-sdk for the runtime&lt;BR /&gt;databricks-connect extends the sdk&lt;/P&gt;&lt;P&gt;Usind this modules I can set the type checkind mode to strict without any VSCode problems being raised&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 14:06:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/vscode-python-project-for-development/m-p/66471#M7099</guid>
      <dc:creator>Alexandru</dc:creator>
      <dc:date>2024-04-17T14:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: vscode python project for development</title>
      <link>https://community.databricks.com/t5/get-started-discussions/vscode-python-project-for-development/m-p/124932#M10354</link>
      <description>&lt;P&gt;How did you solve the type error checks on `pyspark.sql `&amp;nbsp; ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;mypy doesn't create the missing stubs for that one?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 15:10:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/vscode-python-project-for-development/m-p/124932#M10354</guid>
      <dc:creator>A_N</dc:creator>
      <dc:date>2025-07-11T15:10:14Z</dc:date>
    </item>
  </channel>
</rss>

