March 30th, 2022
0 reactions

Python in Visual Studio Code – April 2022 Release

The April 2022 release of the Python Extension for Visual Studio Code is now available.

In this release we’re introducing the following changes:

  • Pylint extension
  • Interpreter display in the status bar moved to the right
  • Simpler way to create empty Python and Jupyter Notebook files
  • Fix for running and debugging files with conda environments

If you are interested, you can check the full list of improvements in our changelogs for the Python, Jupyter and Pylance extensions.

Pylint extension

Our team is working towards breaking the tools support we offer in the Python extension into separate extensions, with the intent of improving performance, stability and no longer requiring the tools to be installed in a Python environment – as they can be shipped alongside an extension. The first one we started to work on is Pylint.

This new extension uses the Language Server Protocol to provide linting support, and it ships with the latest version of pylint.Pylint errors and warnings being displayed on Python code in Visual Studio Code.

It also provides additional ways to configure the severity levels of the issues reported via pylint. For example:

“pylint.severity” : {
    "convention": "Information",
    "error": "Error",
    "fatal": "Error",
    "refactor": "Hint",
    "warning": "Warning",
    "info": "Information",
    "W0611": "Error", //per error code
    "unused-import": "Error" //per error diagnostic
}

Note: You may see two entries for the same problem in the Problems panel if you also have Pylint enabled in the Python extension. You can disable the built-in linting functionality by setting “python.linting.pylintEnabled”: false.

You can try this new extension out today by installing it from the marketplace. If you have any issues or feature requests, you can file them at the Pylint extension’s GitHub repository.

Interpreter display in the status bar moved to the right

To be more consistent with other extensions in VS Code, we moved the selected interpreter version display towards the right side in the status bar, next to the language status item Python. It is now only displayed when a Python or a settings.json file is currently open, to avoid cluttering the status bar: