Python in Visual Studio Code – March 2022 Release

Luciana Abud

The March 2022 release of the Python Extension for Visual Studio Code is now available.

This is a short release as during the past month our team has largely focused on features and changes that will be landing in the next couple of releases. Nevertheless, it still includes new functionality such as support for pre-release versions and changes to the interpreter selector on the status bar.

If you’re interested, you can check the full list of improvements in our changelogs for the Python, Jupyter and Pylance extensions.

Pre-release extension

The Python extension offers an Insiders program, where you can get daily updates so you can try our latest features and bug fixes early on. Before this release, one would opt into it via a setting, and then every day a new build would be downloaded, and a prompt would be displayed to reload the window to enable the new update.

For a smoother opt-in and upgrade experience, we’re migrating our Insiders program to pre-release versions of the Python extension. You can install a pre-release version by opening the extension’s view in VS Code (Ctrl + Shift + X or ⌘ + ⇧ + X), searching for Python, and opening the Python extension. If you already have the extension installed, you will be able to click on the “Switch to Pre-Release Version” next to the “Uninstall” button:

Install pre-release button on Python extension page.

If you don’t have it installed, you will be able to click on the down arrow next to the Install button and select “Install Pre-Release Version”:

Install pre-release version button under drop down menu next to install button on the Python extension page

If you were part of our Insiders program and had the “python.insidersChannel” setting set to “daily”, you will automatically start using the pre-release versions of the Python extension. If you had the “python.insidersChannel” setting set to weekly, you will be prompted to choose whether to install the pre-release version or to switch to the stable version. These settings will also be removed as they are no longer supported.

And if you’re interested in getting the latest notebook features and bug fixes early on, you can also install pre-release versions of the Jupyter extension.

Changes to the interpreter selector on the status bar

To be more consistent with other language extensions, we are also changing the location of the interpreter information/selector on the status bar and experimenting with two potential approaches. One experience simply moves the interpreter information to the bottom right, next to the Language Mode selector:Python interpreter version displayed on the bottom right on the status bar, instead of in the left as in previous releases.

Alternatively, we are placing all interpreter-specific information behind the language status icon (as represented by the { } marker), on the left side of the Language Mode selector. You can click on the language status icon to bring up interpreter details, which you can choose to pin on the status bar by clicking the pin icon to the right of “Select Interpreter”:

Clicking on the { } marker on the bottom right on the status bar shows the selected interpreter path, an option to select another interpreter and to pin the interpreter information on the status bar.

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 VS Code. Some notable changes include:

We would also like to extend special thanks to this month’s contributors:

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.

1 comment

Discussion is closed. Login to edit/delete existing comments.

  • prashanth c 0

    I was searching for a long time on the open internet about the python in visual code for the march and I finally landed in your article after a long search, It’s totally worth now searching for it a long time. Thanks

Feedback usabilla icon