News

What's New for Python in VS Code

The popular Python Extension for Visual Studio Code -- more than 7.3 million installs -- received a raft of updates in the March 2019 release, touching upon collaboration, IntelliSense goodness, Test Explorer and more.

The tool has long been the leading extension in the Visual Studio Code Marketplace, having been downloaded more than 35 million times.

The dev team highlighted four main improvements in the new update. Here's a look at each:

  • Live Share support in the Python Interactive Window: Live Share helps developers collaborate with others by facilitating joint code reviews, pair programming, co-editing and co-debugging while sharing audio, servers, terminals, diffs, comments, and so on. In the March update of the Python extension, this functionality has been extended to the Python Interactive window (read-evaluate-print loop (REPL) window).
  • Support installing packages with Poetry: Poetry is used for Python packaging and dependency management, helping developers manage projects "in a deterministic way." Many developers asked for Poetry support, the team said, noting its ability to help developers keep a project's development dependencies separate from production ones, for example. With some configuration tweaking, developers can install new packages using a provided Poetry path.
  • Improvements to the Python Language Server: The Python Language Server provides the IntelliSense "goodness" such as auto-completions for variables, functions and other symbols. Now f-strings have been added to that list, along with the ability to see type information when hovering over sub-expressions. Microsoft said the language server was largely re-written to boost performance, memory usage, information display and much more.
  • Improvements to the Test Explorer: The built-in Test Explorer was added in the February update to the Python extension. Enhancements in this update include support for multi-root workspaces, parametrized tests and new status icons, the latter of which helps coders quickly see tests files or suites that have failed without needing to expand the tree.

While the above list reflects the dev team's highlights, other assorted improvements include:

  • Fixed stopOnEntry not stopping on user code (#1159)
  • Support multiline comments for markdown cells (#4215)
  • Update icons and tooltip in test explorer indicating status of test files/suites (#4583)
  • Added commands translation for polish locale. (thanks pypros) (#4435)

The extension's changelog provides more details on all of the above and a host of other tweaks, bug fixes, enhancements and more.

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