Python in Visual Studio Code – March 2023 Release
This release includes the following announcements:
- Back button and cancel support added to
- Python extension no longer ships isort by default
- Improvements to kernel picker selection in Jupyter notebooks
- Python for VS Code team on the Python Pulse
Back button and cancel functionality added to Create Environment command
In this release, we have added functionality that enables you to go
Cancel while using the
Python: Create Environment command. This change will allow you to return to previous steps to make changes to environment creation or cancel the action altogether by pressing the
Escape key or
Cancel button. This enhancement has been applied to all
Create Environment UI and will be present in the Jupyter extension as well.
Python extension no longer ships isort by default
We are continuously listening to feedback from the community and have heard requests to reduce the number of extensions we install by default alongside the Python extension. We also want to make sure community-created extensions are considered equally compared to any extension we provide as a team, e.g. people consider the Ruff extension for import sorting. Subsequently, as of this release, isort is no longer installed by default alongside the Python extension.
The isort extension can still be downloaded from the marketplace as an opt-in to the functionality it provides.
Improvements to kernel selection in Jupyter notebooks
When selecting a kernel in a Jupyter notebook, the picker now shows the most recently used kernels by default. This is a convenient change from the previous behavior, as it used to show all available kernels. You can still see all available kernels by a secondary picker Select Another Kernel…, which will group all kernels by their source (for example: Jupyter Kernel, Python Environment, etc.) when you have the latest Jupyter and Python extensions installed.
Python for VS Code team on the Python Pulse
The Python for VS Code team joined Dawn Wages on the Python Pulse livestream to talk all things Python and VS Code! Meet the team, learn how to contribute to the Python extension, and hear more about what is top of mind for the Python extension and VS Code by watching the livestream recording.
The Python Pulse is a bi-monthly livestream where host, Dawn Wages, recaps the latest news in Microsoft Cloud, VS Code and Python tech ecosystem; then deep dives into special segments with an esteemed guest. Catch Dawn on the next Python Pulse livestream, March 10, streaming on Visual Studio Twitch Channel and VS Code YouTube Streams.
Other Changes and Enhancements
We have also added small enhancements and fixed issues requested by users that should improve your experience working with Python and Jupyter Notebooks in Visual Studio Code. Some notable changes include:
- Improved IntelliSense support for pytest with Pylance is now out of preview and available in this latest release
editor.formatOnTypesetting is now on by default for Python files, which enables auto indentation with Pylance for everyone.
- Version 8 of IPyWidgets is now supported in the Jupyter extension
- Improvements to Jupyter extension’s Interactive Window kernel selection. The current active interpreter will be used unless another kernel was previously chosen for an Interactive Window in that workspace
We would also like to extend special thanks to this month’s contributors:
- @satya-vinay made their first contribution in (vscode-flake8#76)
- @mitchell-as made their first contribution in (vscode-python#20534)
- @JCMais made their first contribution in (vscode-python#20741)
Try out these new improvements by downloading the Python extension and the Jupyter extension from the Marketplace, or install them directly from the extensions view in Visual Studio Code (Ctrl + Shift + X or ⌘ + ⇧ + X). You can learn more about Python support in Visual Studio Code in the documentation. If you run into any problems or have suggestions, please file an issue on the Python VS Code GitHub page.