Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon

Python in Visual Studio Code released with enhanced Variable Explorer, Data Viewer, and more!

Save for later
  • 3 min read
  • 27 Apr 2019

article-image
This week, the team at Python announced the release of Python Extension for Visual Studio Code. This release comes with enhanced variable explorer and data viewer and improvements to the Python Language Server.

What’s new in Python in Visual Studio Code?

Enhanced Variable Explorer and Data Viewer


This release comes with a built-in Variable Explorer along with a Data Viewer, which will help the users to easily view, inspect and filter the variables in the application, including lists, NumPy arrays, pandas data frames, and more. This release shows a section for variables while running code and cells in the Python Interactive window. On expanding it, users can see a list of the variables in the current Jupyter session. More variables will automatically show up as they get used in the code. And users can sort the variables in columns by clicking on each column header.

Users can now double-click on each row or use the “Show variable in Data Viewer” button in order to view full data of each variable in the newly-added Data Viewer and can perform a simple search over its values.

Improvements to debug configuration


In this release, the process of configuring the debugger has now been simplified. If a user starts debugging through the Debug Panel and no debug configuration exists, then the users will now be prompted to create a debug configuration for their application. Instead of manually configuring the launch.json file, users can now create a debug configuration through a set of menus.

Improvements to the Python Language Server


This release comes with fixes and improvements to the Python Language Server. The team has added back the features that were removed in the 0.2 release including “Rename Symbol”, “Go to Definition” and “Find All References”. Also, the loading time and memory usage have been improved while importing scientific libraries such as pandas, Plotly, PyQt5, especially while running in full Anaconda environments.  

Read Also: Visualizing data in R and Python using Anaconda [Tutorial]

Major changes

  • In this release, the default behavior of debugger has been changed to display return values.
  • “Unit Test” has been renamed to “Test” or “Testing”.
  • The debugStdLib setting has been replaced with justMyCode.
  • This release comes with setting to just enable/disable the data science codelens.
  • Unlock access to the largest independent learning library in Tech for FREE!
    Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
    Renews at $19.99/month. Cancel anytime
  • The reliability of test discovery while using pytest has been improved.

Bug Fixes

  • The issues with cell spacing have been resolved.
  • Problems with errors not showing up for import have been fixed.
  • Issues with the tabs in the comments section have been fixed.


To know more about this news, check out Microsoft’s official blog post.

Mozilla introduces Pyodide, a Python data science stack compiled to WebAssembly

Microsoft introduces Pyright, a static type checker for the Python language written in TypeScript

Debugging and Profiling Python Scripts [Tutorial]