📜 ⬆️ ⬇️

Python in Visual Studio Code. April issue

We are pleased to announce that in April 2019 there was an update to the Python extension for Visual Studio Code. You can download the Python extension from the Marketplace or install it directly from the extension gallery in Visual Studio Code. You can learn more about Python support in the Visual Studio Code documentation.

In this issue, we have made a number of improvements that are listed in our change log , closing a total of 84 problems, including:


Look under the cat to find out more!
')
image

Variable Explorer and Data Viewer


Python Interactive now comes with built-in Variable Explorer and Data Viewer (a very popular feature from our users). Now you can easily view, check, and filter variables in the application, including lists, NumPy arrays, Pandas data frames, and more!

The Variables section will now appear when you run code and cells in the Python Interactive window. Once you expand it, you will see a list of variables in the current Jupyter session. Additional variables will be displayed automatically as they are used in the code. Clicking on the header of each column will sort the variables in the table.

image

You can also double-click on each line or use the “Show variable in data viewer” button to view the full data of each variable in the newly added Data Viewer, and also perform a simple search by its values:

image

Data Viewer requires Pandas package version 0.20 or later. If it is not available, you will receive a message to install or update it.

Variable Explore is enabled by default. You can turn it off via File> Preferences> Settings and search for Python> Data Science: Show Jupyter Variable Explorer .

Debug configuration enhancements


We simplified the debugger configuration process for the workspace. Now, if you start debugging (via Debug Panel, F5 or Debug> Start Debugging ), the debugging configuration does not exist, you will be prompted to create a debugging configuration for your application. You can create a debug configuration using the menu set, rather than manually configuring launch.json .

image

This prompt will also be displayed when adding another debug configuration via the launch.json file:

image

Additional Python Language Server Improvements


This release includes several fixes and improvements for the Python Language Server. We returned the functions that were removed in release 0.2: “Rename Symbol”, “Go to Definition” and “Find All References”, as well as improved load times and memory usage when importing scientific libraries such as Pandas, Plotly, PyQt5 especially when working in the complete Anaconda environment.

To enable the Language Server, change to python.jediEnabled false in File> Preferences> User Settings . We are working to make the default language server in the next few releases, so if you have problems, please post a question on the Python Language Server page on GitHub .

Other changes and improvements.


We also added minor improvements and bug fixes that were requested by users, which should improve your experience with Python in Visual Studio Code. Some notable changes include:


Don't forget to download the Python extension for Visual Studio Code now to try out the above improvements. If you have any problems, please write about it on the Python VS Code page on GitHub .

Source: https://habr.com/ru/post/450202/


All Articles