News

VS Code Python Tool Adds Variable Explorer, Data Viewer

The latest monthly update to the Python extension for Visual Studio Code makes it easier for developers to keep track of variables and their data when working with the ever-popular programming language in the ever-popular open source code editor.

The Python extension, available in the Visual Studio Code Marketplace, just passed 8 million installations, making it by far the most popular extension for the cross-platform VS Code editor that has come to be named the most popular dev tool in at least one major survey.

The open source extension project gets new functionality on a monthly cadence, with the April 2019 edition seeing several improvements and closing 84 issues.

Among the improvements, Luciana de Melo e Abud, program manager, highlighted the new variable explorer functionality in an announcement post.

"The Python Interactive experience now comes with a built-in variable explorer along with a data viewer, a highly requested feature from our users," de Melo e Abud said. "Now you can easily view, inspect and filter the variables in your application, including lists, NumPy arrays, pandas data frames, and more!

"A variables section will now be shown when running code and cells in the Python Interactive window. Once you expand it, you'll see the list of the variables in the current Jupyter session. More variables will show up automatically as they get used in the code. Clicking on each column header will sort the variables in the table."

Inspecting the data being held by a variable can be done with a double-click on a row of the variable list, or by clicking a "Show variable in data viewer" button.

Another tweak simplifies the process of configuring the debugger for individual workspaces.

The new release also features improvements to the Python Language Server, which implements the Language Server Protocol in order to serve up language-specific features such as auto completion, go to definition, find all references and so on.

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