News

Visual Studio Team Adds More Python Functionality

The VS Code team is well-known for going all in on Python development, but the Visual Studio IDE team has also been busy in adding and improving features for using the popular and growing programming language.

In fact, the recently announced Visual Studio 15.7 Preview 4 has several features targeting Python developers.

Previously, Microsoft has detailed Python-based features for VS 2017 15.7 previews, including IntelliSense for type hints and a preview of the ptvsd 4.0 debugger (Python Tools for Visual Studio debug server).

In the latest preview announced earlier this month, the Python work has continued, reflecting the increasing interest in Python, which was recently projected by the PYPL PopularitY of Programming Language (PYPL Index) as being on the cusp of overtaking Java for the most popular of all languages.

Specifically, Preview 4 includes:

  • Faster debugging, enabled by a new version of that aforementioned ptvsd debug engine based on PyDevD, expected to be much faster. The new version doesn't yet support a couple features -- Set Next Statement and Just My Code -- but developers wanting to use those features can roll back to the previous version, Microsoft's Dan Taylor said in a blog post. "We have also made a preview of the new ptvsd available in the Python extension for Visual Studio Code, which continues to keep our debugging capabilities consistent across Visual Studio and Visual Studio Code," Taylor said.
  • IntelliSense for type hints, of which Taylor reiterated the details in his new post, while further detailing the use of MyPy with type hints. "To fully validate your code against type hints, we recommend using MyPy," he said. "MyPy is the industry standard tool for validating type hints throughout your entire project. As a separate tool, you can easily configure it to run in your build system as well as the development environment, but it is also useful to have it be easily accessible while developing."
  • Conda environments, which provide package, dependency and environment management for Python and other languages. Developers can now create and use Conda environments while also managing packages for those environments using pip or Conda. "To manage or use Conda environments from Visual Studio, you'll need Anaconda or Miniconda," Taylor said. "You can install Anaconda directly from the Visual Studio installer or get it separately if you'd rather manage the installation yourself."

The next Visual Studio 2017 15.7 preview should be coming out soon, so stay tuned for yet more Python functionality.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • GitHub Copilot for Azure Gets Preview Glitches

    This reporter, recently accepted to preview GitHub Copilot for Azure, has thus far found the tool to be, well, glitchy.

  • New .NET 9 Templates for Blazor Hybrid, .NET MAUI

    Microsoft's fifth preview of .NET 9 nods at AI development while also introducing new templates for some of the more popular project types, including Blazor Hybrid and .NET MAUI.

  • What's Next for ASP.NET Core and Blazor

    Since its inception as an intriguing experiment in leveraging WebAssembly to enable dynamic web development with C#, Blazor has evolved into a mature, fully featured framework. Integral to the ASP.NET Core ecosystem, Blazor offers developers a unique combination of server-side rendering and rich client-side interactivity.

  • Nearest Centroid Classification for Numeric Data Using C#

    Here's a complete end-to-end demo of what Dr. James McCaffrey of Microsoft Research says is arguably the simplest possible classification technique.

  • .NET MAUI in VS Code Goes GA

    Visual Studio Code's .NET MAUI workload, which evolves the former Xamarin.Forms mobile-centric framework by adding support for creating desktop applications, has reached general availability.

Subscribe on YouTube