New Python Extension For Visual Studio Code Available Now

February 2019 release of the Python Extension brings a built-in Test Explorer, validated breakpoints when debugging, and the ability to run code selection in the Python Interactive window.

Recently, Microsoft announced that the February 2019 release of the Python Extension for Visual Studio Code is now available. This release has addressed a total of 40 issues, including a built-in Test Explorer, validation of breakpoint targets when debugging, and the capability to run any code selection in the Python Interactive window.
The new release features the ability to visualize, navigate and run unit tests through a test explorer. To enable it, execute the command Python: Discover Unit Tests from the Command Palette (View -> Command Palette).
Python Extension for Visual Studio Code  
Source: Microsoft 
The test framework can also be chosen and configured by running the newly added command Python: Configure Unit Tests from the Command Palette. The Python extension supports unit testing with Python’s built-in unittest framework as well as pytest. Nose is also supported, although the framework itself is in maintenance mode.
The Feb release also brings an enhancement to the debugger - validation of breakpoints targets. Now, if a breakpoint is added on a line where breakpoints are not valid, then it will automatically move to the nearest preceeding valid line. This way the breakpoints added are ensured to be hit.
The company said that one of the top-requested features has been for the ability to execute code selections without defining code cells. Developers can now send any code line/selection to run in the Python Interactive window, by making use of command “Python: Run Selection/Line in Python Interactive window”.
Or use the shortcut key Shift+Enter by changing the python.dataScience.sendSelectionToInteractiveWindow property to use the Python Interactive window instead of the default terminal.
Some other notable changes include -
Add support for multi root workspaces with the new language server. (#3008)
Added Dutch translation (thanks Robin Martijn with the feedback of Michael van Tellingen) (#4186)
Support simple variable substitution in .env (#3275)
Allow “Run Cell” code lenses on non-local files. (#3995)
Strip comments before sending to shell command and multiline Jupyter magics work correctly. (#4064)
Support launch configs for debugging tests. (#332)
To see full list of changes you can visit the github. To read the the official announcement visit here.
To try out new features download the Python extension from the Visual Studio Marketplace, or you can install it directly from the extension gallery in Visual Studio Code.