News

Python in Visual Studio Code Gets 3 New Extensions

Microsoft's Python in Visual Studio Code dev team introduced three new extensions: Black Formatter, isort and Jupyter Powertoys.

The new tools, included in the May 2022 release of the Python and Jupyter extensions for VS Code, follow on last month's update in which the team announced it was breaking up its Python extension into separate offerings. That extension is by far the most popular one in the VS Code marketplace, with more than 53 million installations. It provides IntelliSense, linting, debugging and so on.

"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," said Karthik Nadig last month, noting that Pylint was the first target.

The work continued in this month's update.

"We now have a new extension for Black, the Python formatter. Similar to the pylint extension, this new extension uses the Language Server Protocol to provide formatting support, and it ships with the latest version of Black -- so you're no longer required to have it installed in a Python environment," said Soojin Choi, program manager.

Black Extension in Animated Action
[Click on image for larger, animated GIF view.] Black Extension in Animated Action (source: Microsoft).

The isort extension, meanwhile, is used for sorting, as its name bespeaks. "When you open a file and your imports don't follow isort's standards, it will display an error diagnostic and provide a code action to fix the import order," Choi said.

Finally, the Jupyter Powertoys extension is an experimental option for working with Jupyter notebooks with prototype features including:

  • Kernel management panel
  • Contextual help
  • Execution grouping

Along with the new extensions, the Jupyter tool can now be installed as a web extension for the online, web-hosted vscode.dev offering.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube