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

comments powered by Disqus

Featured

  • 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.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube