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