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 for Converge360.

comments powered by Disqus

Featured

  • Full Stack Hands-On Development with .NET

    In the fast-paced realm of modern software development, proficiency across a full stack of technologies is not just beneficial, it's essential. Microsoft has an entire stack of open source development components in its .NET platform (formerly known as .NET Core) that can be used to build an end-to-end set of applications.

  • .NET-Centric Uno Platform Debuts 'Single Project' for 9 Targets

    "We've reduced the complexity of project files and eliminated the need for explicit NuGet package references, separate project libraries, or 'shared' projects."

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

Subscribe on YouTube