Visual Studio Code of python extensions have been released from the Marketplace can be extended download Python , or install extensions directly from the Visual Studio Code. If a Python extension installed, you can also get the latest updates by restarting the Visual Studio Code.
In this version, it brings some features, including interactive Python window drawing viewer, parallel testing with pytest and the contents in the terminal operation selected.
Python interactive window drawing viewer
The main feature is the generation of better graphics operations, such as zoom, pan, and export images, such as Matplotlib drawing, drawing, or by double-clicking "expanded image" button to operate:
The new version of the drawing viewer, you can pan, zoom in / out, view the current session of drawing and graphics export to PDF, SVG or PNG format.
Parallel testing with pytest
In the information displayed results of running the test, the new improved reliability, added to the configuration file by installing pytest-xdist packet and "-n <number of CPUs>", for example, for four CPU, you can in the project folder create a pytest.ini file and add the following:
[pytest]
addopts=-n4
When you run and debug test, they performed in parallel
In operation contents selected terminal
This release, when running "Run Selection / Line in Python Terminal" command, the command to transmit the selected content to the terminal according to its first non-blank line.
Other modifications
- Jupyter allow remote password authentication
- Add a child process in debugging test debugging support
- Add support for activation in Conda environment in Powershell
- Add "ctrl + Enter" to run as a shortcut to the current cell
- Data Viewer can correctly handle large data frames, and support the use of the expression screening
- Python interactive window to preview files can be imported
信息详情查看 https://devblogs.microsoft.com/python/python-in-visual-studio-code-june-2019-release/