News

VS Code Python Tooling Gets 'Most Requested' Feature: Poetry Support

The wildly popular Python extension for Visual Studio Code is previewing support for Poetry, which eases Python packaging and dependency management.

Microsoft's post announcing the April 2021 update to the open source-based, cross-platform code editor described it as the most requested feature in the GitHub repo for Python extension for Visual Studio Code ( with more than 34.5 million installs).

Poetry in Animated Action
[Click on image for larger, animated GIF view.] Poetry in Animated Action (source: Microsoft).

As it's a preview, developers can try it out by joining the Insiders program where the latest bits are made available for the daring.

"If you're using our Insiders build, you will be able select interpreters from environments created using Poetry, as they're now automatically discovered by the Python extension," said PM Luciana de Melo e Abud. "Once you select it, you can create a new terminal to have that environment automatically activated."

Poetry will also install packages.

Also new in the April 2021 update are:

  • Improved auto-completions for PyTorch 1.8.1 (an open source machine learning library) when using Pylance, the tool's new Python language server
  • Data Viewer improvements, such as:
    • Refresh functionality without having to close and reopen the viewer
    • Support for PyTorch and TensorFlow data types
    • An "aesthetically pleasing" visual update
    • Support for data slicing, "which allows you to view any 2D slice of your higher dimensional data. If you have 3-dimensional or greater data (numpy ndarray, PyTorch Tensor or TensorFlow EagerTensor types), you will now be able to view that multi-dimensional data in the Data Viewer and a new data slicing panel will open in the Data Viewer by default."

A host of other changes and enhancements is illustrated by pull requests:

  • Deprecate format on type since it isn't used in newer Language servers. (#15709)
  • Remove notification prompt to install pylint by default (#15465)
  • Prevent mypy errors for other files showing in current file. (thanks Steve Dignam) (#10190)
  • Ensure jedi processes are terminated on language server dispose. (#15644)
  • Add a refresh icon next to interpreter list (available in the Insiders build). (#15868)

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Microsoft Revamps Fledgling AutoGen Framework for Agentic AI

    Only at v0.4, Microsoft's AutoGen framework for agentic AI -- the hottest new trend in AI development -- has already undergone a complete revamp, going to an asynchronous, event-driven architecture.

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

Subscribe on YouTube