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

  • IDE Irony: Coding Errors Cause 'Critical' Vulnerability in Visual Studio

    In a larger-than-normal Patch Tuesday, Microsoft warned of a "critical" vulnerability in Visual Studio that should be fixed immediately if automatic patching isn't enabled, ironically caused by coding errors.

  • Building Blazor Applications

    A trio of Blazor experts will conduct a full-day workshop for devs to learn everything about the tech a a March developer conference in Las Vegas keynoted by Microsoft execs and featuring many Microsoft devs.

  • Gradient Boosting Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the gradient boosting regression technique, where the goal is to predict a single numeric value. Compared to existing library implementations of gradient boosting regression, a from-scratch implementation allows much easier customization and integration with other .NET systems.

  • Microsoft Execs to Tackle AI and Cloud in Dev Conference Keynotes

    AI unsurprisingly is all over keynotes that Microsoft execs will helm to kick off the Visual Studio Live! developer conference in Las Vegas, March 10-14, which the company described as "a must-attend event."

  • Copilot Agentic AI Dev Environment Opens Up to All

    Microsoft removed waitlist restrictions for some of its most advanced GenAI tech, Copilot Workspace, recently made available as a technical preview.

Subscribe on YouTube