{"id":8872,"date":"2022-03-03T17:02:35","date_gmt":"2022-03-04T01:02:35","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/python\/?p=8872"},"modified":"2022-03-03T17:02:35","modified_gmt":"2022-03-04T01:02:35","slug":"python-in-visual-studio-code-march-2022-release","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/python\/python-in-visual-studio-code-march-2022-release\/","title":{"rendered":"Python in Visual Studio Code \u2013 March 2022 Release"},"content":{"rendered":"<p>The March 2022 release of the Python Extension for Visual Studio Code is now available.<\/p>\n<p>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 <a href=\"https:\/\/code.visualstudio.com\/api\/working-with-extensions\/publishing-extension#prerelease-extensions\">pre-release versions<\/a> and changes to the interpreter selector on the status bar.<\/p>\n<p>If you\u2019re interested, you can check the full list of improvements in our changelogs for the <a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/blob\/master\/CHANGELOG.md\">Python<\/a>, <a href=\"https:\/\/github.com\/microsoft\/vscode-jupyter\/blob\/main\/CHANGELOG.md\">Jupyter<\/a> and <a href=\"https:\/\/github.com\/microsoft\/pylance-release\/blob\/main\/CHANGELOG.md\">Pylance<\/a> extensions.<\/p>\n<h2>Pre-release extension<\/h2>\n<p>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.<\/p>\n<p>For a smoother opt-in and upgrade experience, we\u2019re migrating our Insiders program to <a href=\"https:\/\/code.visualstudio.com\/updates\/v1_63#_pre-release-extensions\">pre-release versions<\/a> of the Python extension. You can install a pre-release version by opening the extension\u2019s view in VS Code (Ctrl + Shift + X or \u2318 + \u21e7 + X), searching for Python, and opening the Python extension. If you already have the extension installed, you will be able to click on the \u201cSwitch to Pre-Release Version\u201d next to the &#8220;Uninstall&#8221; button:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/IntallPreReleaseButton.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-8873\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/IntallPreReleaseButton.png\" alt=\"Install pre-release button on Python extension page.\" width=\"1334\" height=\"337\" srcset=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/IntallPreReleaseButton.png 1334w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/IntallPreReleaseButton-300x76.png 300w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/IntallPreReleaseButton-1024x259.png 1024w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/IntallPreReleaseButton-768x194.png 768w\" sizes=\"(max-width: 1334px) 100vw, 1334px\" \/><\/a><\/p>\n<p>If you don\u2019t have it installed, you will be able to click on the down arrow next to the Install button and select \u201cInstall Pre-Release Version\u201d:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/IntallPreReleaseButton2.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-8874\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/IntallPreReleaseButton2.png\" alt=\"Install pre-release version button under drop down menu next to install button on the Python extension page\" width=\"1251\" height=\"415\" srcset=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/IntallPreReleaseButton2.png 1251w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/IntallPreReleaseButton2-300x100.png 300w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/IntallPreReleaseButton2-1024x340.png 1024w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/IntallPreReleaseButton2-768x255.png 768w\" sizes=\"(max-width: 1251px) 100vw, 1251px\" \/><\/a><\/p>\n<p>If you were part of our Insiders program and had the &#8220;python.insidersChannel&#8221; setting set to \u201cdaily\u201d, you will automatically start using the pre-release versions of the Python extension. If you had the &#8220;python.insidersChannel&#8221; 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.<\/p>\n<p>And if you\u2019re interested in getting the latest notebook features and bug fixes early on, you can also install pre-release versions of the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-toolsai.jupyter\">Jupyter extension<\/a>.<\/p>\n<h2>Changes to the interpreter selector on the status bar<\/h2>\n<p>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:<a href=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/InterpreterOnTheRight.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-8875\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/InterpreterOnTheRight.png\" alt=\"Python interpreter version displayed on the bottom right on the status bar, instead of in the left as in previous releases. \" width=\"624\" height=\"429\" srcset=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/InterpreterOnTheRight.png 624w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/InterpreterOnTheRight-300x206.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/a><\/p>\n<p>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 \u201cSelect Interpreter\u201d:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/InterpreterUnpinned.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-8877\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/InterpreterUnpinned.png\" alt=\"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.\" width=\"1653\" height=\"1076\" srcset=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/InterpreterUnpinned.png 1653w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/InterpreterUnpinned-300x195.png 300w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/InterpreterUnpinned-1024x667.png 1024w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/InterpreterUnpinned-768x500.png 768w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2022\/03\/InterpreterUnpinned-1536x1000.png 1536w\" sizes=\"(max-width: 1653px) 100vw, 1653px\" \/><\/a><\/p>\n<h2>Other Changes and Enhancements<\/h2>\n<p>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:<\/p>\n<ul>\n<li>Fix CPU load issue caused by poetry plugin by not watching directories which do not exist. (<a href=\"http:\/\/github.com\/Microsoft\/vscode-python\/issues\/18459\">#18459<\/a>)<\/li>\n<li>Performance improvements in Pylance. (<a href=\"https:\/\/github.com\/microsoft\/pylance-release\/issues\/2270\">pylance-release#2270<\/a>, <a href=\"https:\/\/github.com\/microsoft\/pylance-release\/issues\/2314\">pylance-release#2314<\/a>)<\/li>\n<li>Fix an issue to refresh the list of Jupyter kernels when new Conda environments are created. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-jupyter\/issues\/8508\">vscode-jupyter#8508<\/a>)<\/li>\n<\/ul>\n<p>We would also like to extend special thanks to this month\u2019s contributors:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/batisteo\">Baptiste Darthenay<\/a>: Better filename patterns for pip-requirements. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/18498\">#18498<\/a>)<\/li>\n<li><a href=\"https:\/\/github.com\/nicolamarella\">Nicola Marella<\/a>: Fixes for Pylama output parsing issues. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/15609\">#15609<\/a>)<\/li>\n<li><a href=\"https:\/\/github.com\/posita\">Matt Bogosian<\/a>: Explicitly add\u00a0&#8220;justMyCode&#8221;: &#8220;true&#8221;\u00a0to all\u00a0launch.json\u00a0configurations. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/18471\">#18471<\/a>)<\/li>\n<li><a href=\"https:\/\/github.com\/sjdemartini\">Steven DeMartini<\/a> and <a href=\"https:\/\/github.com\/Dr-Irv\">Irv Lustig<\/a>: Several improvements in IntelliSense with Pylance for pandas thanks to stubs contributions. (<a href=\"https:\/\/github.com\/microsoft\/python-type-stubs\/pull\/169\">python-type-stubs#169<\/a>, <a href=\"https:\/\/github.com\/microsoft\/python-type-stubs\/pull\/168\">python-type-stubs#168<\/a>, <a href=\"https:\/\/github.com\/microsoft\/python-type-stubs\/pull\/167\">python-type-stubs#167<\/a>, <a href=\"https:\/\/github.com\/microsoft\/python-type-stubs\/pull\/166\">python-type-stubs#166<\/a>, <a href=\"https:\/\/github.com\/microsoft\/python-type-stubs\/pull\/168\">python-type-stubs#163<\/a>)<\/li>\n<li><a href=\"https:\/\/github.com\/C-SELLERS\">Colton Sellers<\/a>: Modify command `jupyter.selectjupyteruri` to allow URI parameter. (<a href=\"https:\/\/github.com\/microsoft\/vscode-jupyter\/issues\/8902\">vscode-jupyter#8902<\/a>)<\/li>\n<\/ul>\n<p>Try out these new improvements by\u00a0<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-python.python\">downloading the Python extension<\/a>\u00a0and the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-toolsai.jupyter\">Jupyter extension<\/a> from the Marketplace, or install them directly from the extensions view in Visual Studio Code (Ctrl\u00a0+\u00a0Shift\u00a0+\u00a0X\u00a0or\u00a0\u2318\u00a0+\u00a0\u21e7\u00a0+\u00a0X). You can learn more about\u00a0<a href=\"https:\/\/code.visualstudio.com\/docs\/python\/python-tutorial\">Python support in Visual Studio Code<\/a>\u00a0in the documentation. If you run into any problems or have suggestions,\u00a0<a href=\"https:\/\/github.com\/microsoft\/vscode-python\/issues\/new\/choose\">please file an issue<\/a>\u00a0on the\u00a0<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\">Python VS Code GitHub<\/a> page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The March 2022 release of the Python Extension for Visual Studio Code is now available and it includes support for pre-release versions and changes to the interpreter selector on the status bar.<\/p>\n","protected":false},"author":1064,"featured_media":8875,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,6],"tags":[],"class_list":["post-8872","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-visual-studio-code"],"acf":[],"blog_post_summary":"<p>The March 2022 release of the Python Extension for Visual Studio Code is now available and it includes support for pre-release versions and changes to the interpreter selector on the status bar.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/posts\/8872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/users\/1064"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/comments?post=8872"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/posts\/8872\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/media\/8875"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/media?parent=8872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/categories?post=8872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/tags?post=8872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}