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

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

Subscribe on YouTube

Upcoming Training Events