{"id":8608,"date":"2021-08-06T10:09:36","date_gmt":"2021-08-06T18:09:36","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/python\/?p=8608"},"modified":"2021-08-06T10:15:13","modified_gmt":"2021-08-06T18:15:13","slug":"python-in-visual-studio-code-august-2021-release","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/python\/python-in-visual-studio-code-august-2021-release\/","title":{"rendered":"Python in Visual Studio Code \u2013 August 2021 Release"},"content":{"rendered":"<p>We are pleased to announce that the August 2021 release of the Python Extension for Visual Studio Code is now available. You can <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-python.python\">download the Python extension<\/a> from the Marketplace, or install it directly from the extension gallery in Visual Studio Code. If you already have the Python extension installed, you can also get the latest update by restarting Visual Studio Code. 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.<\/p>\n<p>This was a short release as we are now adjusting our release cadence to match that of VS Code (speaking of which, make sure to check the <a href=\"https:\/\/code.visualstudio.com\/updates\/v1_59\">VS Code release notes<\/a> to see what\u2019s new for all languages!). We\u2019re excited to announce that the revamped Jupyter notebooks experience brought by the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-toolsai.jupyter\">Jupyter extension<\/a> is now out of preview, and that we have an improved way of sorting Python interpreters on the selection list.<\/p>\n<p>If you\u2019re interested, you can check the list of improvements in our\u00a0<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/blob\/main\/CHANGELOG.md\">changelog<\/a>.<\/p>\n<h2>Revamped Jupyter Notebooks Experience<\/h2>\n<p>In July 2020, <a href=\"https:\/\/devblogs.microsoft.com\/python\/notebooks-are-getting-revamped\/\">we had announced<\/a> the preview of the new experience for Jupyter notebooks in VS Code. We\u2019re excited that this much faster and feature-rich experience is now out of preview and available to all users of VS Code.<\/p>\n<p><figure id=\"attachment_8609\" aria-labelledby=\"figcaption_attachment_8609\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/NativeNotebooksOutOfPreview.gif\"><img decoding=\"async\" class=\"wp-image-8609 size-full\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/NativeNotebooksOutOfPreview.gif\" alt=\"New Jupyter notebooks rendering and experience in VS Code \" width=\"1885\" height=\"1256\" \/><\/a><figcaption id=\"figcaption_attachment_8609\" class=\"wp-caption-text\"><span style=\"font-size: 8pt;\"><em>Theme: <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=fisheva.eva-theme\">Eva Light Bold<\/a><\/em><\/span><\/figcaption><\/figure><\/p>\n<p>With this revamped experience, all the things you love about VS Code are better integrated:<\/p>\n<ul>\n<li>Source control diffing: cell changes are now easier to parse and to inspect in the source control view \u2013 you can even customize what types of changes you want displayed.<\/li>\n<li>Key-bindings: default VS Code shortcuts as well as those provided by keymap extensions (e.g. <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscodevim.vim\">VIM<\/a>) are now supported on notebook files.<\/li>\n<li>High customization ability: customization of appearance or\u00a0placement\u00a0of\u00a0many of the UI notebook elements \u2013 you can check all available settings by opening the Settings UI (<strong>File<\/strong> &gt; <strong>Preferences<\/strong> &gt; <strong>Settings<\/strong> and search for \u201cNotebook\u201d.<a href=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/NotebookSettings.png\"><img decoding=\"async\" class=\"aligncenter wp-image-8610 size-large\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/NotebookSettings-1024x686.png\" alt=\"View of a few notebook customization settings \" width=\"640\" height=\"429\" srcset=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/NotebookSettings-1024x686.png 1024w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/NotebookSettings-300x201.png 300w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/NotebookSettings-768x515.png 768w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/NotebookSettings-1536x1030.png 1536w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/NotebookSettings.png 1890w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/li>\n<\/ul>\n<p>You can learn more about Jupyter notebook support in VS Code on the <a href=\"https:\/\/code.visualstudio.com\/docs\/datascience\/jupyter-notebooks\">documentation<\/a>.<\/p>\n<h2>Improved sorting of Python interpreters<\/h2>\n<p>Previously, when running the \u201cPython: Select Interpreter\u201d command, the Python extension would display the list of all the Python interpreters it could find ordered alphabetically. When there are many Python environments on a machine, this often led to additional steps for interpreter selection that involved searching and a lot of scrolling. To make that process faster, we are now displaying the list of interpreters in a way so that the one you are most likely to want for your project shows first on the list and is easier to find. The order in which they are now displayed is the following:<\/p>\n<ol>\n<li>Environments located in the same path as the workspace root;<\/li>\n<li>Globally-installed environments (e.g. $WORK_ON or conda);<\/li>\n<li>Global installs (e.g. \/usr\/bin\/python3.9)<\/li>\n<\/ol>\n<p>The Python interpreters with higher versions for each of those categories are displayed first.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/InterpretersList.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-8611\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/InterpretersList.png\" alt=\"List of Python interpreters listed in the new sorting order\" width=\"1156\" height=\"640\" srcset=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/InterpretersList.png 1156w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/InterpretersList-300x166.png 300w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/InterpretersList-1024x567.png 1024w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/08\/InterpretersList-768x425.png 768w\" sizes=\"(max-width: 1156px) 100vw, 1156px\" \/><\/a><\/p>\n<h2>Other Changes and Enhancements<\/h2>\n<p>We also want to thank the following people who contributed this month to the Python extension in Visual Studio Code:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/bfarahdel\">@bfarahdel<\/a>: Sorted settings alphabetically (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/8406\">#8406<\/a>)<\/li>\n<li><a href=\"https:\/\/github.com\/jasleen101010\">@jasleen101010<\/a>: Changed default language server to\u00a0Pylance\u00a0for extension development (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/13007\">#13007<\/a>)<\/li>\n<li><a href=\"https:\/\/github.com\/iChenLei\">@iChenLei<\/a>: Replaced deprecated vscode-test with @vscode\/test-electron for CI. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/16765\">#16765<\/a>)<\/li>\n<\/ul>\n<p>Be sure to\u00a0<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-python.python\">download the Python extension<\/a>\u00a0for Visual Studio Code now to try out the above improvements. If you run into any problems or have suggestions, <a href=\"https:\/\/github.com\/microsoft\/vscode-python\/issues\/new\/choose\">please file an issue<\/a> on the\u00a0<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\">Python VS Code GitHub<\/a>\u00a0page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this release we\u2019re excited to announce a revamped Jupyter notebooks experience, as well as our new and improved way of sorting Python interpreters on the selection list. Keep on reading to learn more!<\/p>\n","protected":false},"author":1064,"featured_media":8609,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,6],"tags":[],"class_list":["post-8608","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-visual-studio-code"],"acf":[],"blog_post_summary":"<p>In this release we\u2019re excited to announce a revamped Jupyter notebooks experience, as well as our new and improved way of sorting Python interpreters on the selection list. Keep on reading to learn more!<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/posts\/8608","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=8608"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/posts\/8608\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/media\/8609"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/media?parent=8608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/categories?post=8608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/tags?post=8608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}