News

VS Code Python Tool Improves Data Science Experience

Microsoft updated its Python Extension for Visual Studio Code, building out new data science functionality that was introduced in a previous release.

The Python extension is by far the most popular offering on the Visual Studio Code Marketplace, downloaded by nearly 30 million developers (about 13 million more times than No. 2).

Microsoft has gone all in on Python for its open source, cross-platform code editor, and actually hired the original author of the extension, Don Jayamanne, back in 2017 and subsequently took ownership of the project.

Among a steady stream of improvements since then, the October 2018 release of the Python extension boosted the data science capabilities with functionality such as Jupyter support with the Python Interactive window.

The Jupyter Project is best known for the Jupyter Notebook, described as: "An open-source Web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more."

In the new January 2019 edition of the Python extension, program manager Luciana Abud noted that functionality was improved by the Python engineering team.

"The data science experience was first introduced in the last October release, and one of the top feedback requests we’ve heard was to provide the ability to iterate rapidly by experimenting with code in an interactive console environment," Abud said in a Jan. 29 blog post. "In this update, we extended the Python Interactive window with IPython console support by allowing code to be typed in and executed directly in the window. You can now use the enhanced Interactive window standalone as an IPython console, or send code from the editor for execution."

Another most-requested feature -- to be able to run code in the Python Interactive window without having to define cells -- was also implemented, along with new diagnostics for failed tests with pytest and a much faster outline view with the Microsoft Python Language Server.

That Python Language Server provides the guts of the Python extension, enabling all the underlying Python-related functionality such as IntelliSense by implementing the Language Server Protocol.

Other changes and enhancements listed by Abud include:

  • Add the python.pipenvPath config setting (#978)
  • Improvements to automatic selection of the python interpreter. (#3369)
  • Indent on enter after line continuations. (#3284)
  • Activate pipenv environments in the shell using the command pipenv shell. (#2855)
  • Fix bug affecting multiple linters used in a workspace. (thanks Ilia Novoselov) (#2571)
  • Validate Mac Interpreters in the background. (#3908)
  • Activate any selected Python Environment when running unit tests. (#3330)
  • Use Pylint message names instead of codes (thanks to Roman Kornev) (#2906)

The full list of everything new is available in the changelog. The open source code for the tool is available on GitHub.

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