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

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

  • Copilot Agentic AI Dev Environment Opens Up to All

    Microsoft removed waitlist restrictions for some of its most advanced GenAI tech, Copilot Workspace, recently made available as a technical preview.

Subscribe on YouTube