{"id":8720,"date":"2021-10-07T14:20:58","date_gmt":"2021-10-07T22:20:58","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/python\/?p=8720"},"modified":"2021-10-07T14:20:58","modified_gmt":"2021-10-07T22:20:58","slug":"python-in-visual-studio-code-october-2021-release","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/python\/python-in-visual-studio-code-october-2021-release\/","title":{"rendered":"Python in Visual Studio Code \u2013 October 2021 Release"},"content":{"rendered":"<p>We are pleased to announce that the October 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 <a href=\"https:\/\/code.visualstudio.com\/docs\/python\/python-tutorial\">Python support in Visual Studio Code<\/a> in the documentation.<\/p>\n<p>In this release we closed\u00a0a total of <a href=\"https:\/\/github.com\/microsoft\/vscode-python\/milestone\/71?closed=1\">88 issues<\/a>, and it includes:<\/p>\n<ul>\n<li>Debugging support for Jupyter Notebooks<\/li>\n<li>A new Python walkthrough<\/li>\n<li>Improvements to the debugging experience for Python files and projects<\/li>\n<\/ul>\n<p>If you\u2019re interested, you can check the full list of improvements in our <a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/blob\/master\/CHANGELOG.md\">changelog<\/a>.<\/p>\n<h2>Debugging support for Jupyter Notebooks<\/h2>\n<p>We\u2019re excited to announce that you can now debug your Python cells on Jupyter notebooks!<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/10\/Oct21-jupyternotebookdebugging.gif\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-8722\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/10\/Oct21-jupyternotebookdebugging.gif\" alt=\"Debugging a Jupyter notebook cell\" width=\"1731\" height=\"1266\" \/><\/a><\/p>\n<p>To try it out, make sure you have ipykernel v6+ installed in your selected kernel. Then set a breakpoint, select the Debug Cell command from the drop-down menu next to the play button and start inspecting your code with all the features the debugger has to offer!<\/p>\n<h2>New Python walkthrough<\/h2>\n<p>We\u2019re excited to announce that this release includes a walkthrough with some basic set up steps to improve the getting started experience for Python in VS Code.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/10\/Oct21-Walkthrough.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-8723\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/10\/Oct21-Walkthrough.png\" alt=\"Python walkthrough in VS Code with basic set up steps\" width=\"1868\" height=\"1133\" srcset=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/10\/Oct21-Walkthrough.png 1868w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/10\/Oct21-Walkthrough-300x182.png 300w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/10\/Oct21-Walkthrough-1024x621.png 1024w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/10\/Oct21-Walkthrough-768x466.png 768w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/10\/Oct21-Walkthrough-1536x932.png 1536w\" sizes=\"(max-width: 1868px) 100vw, 1868px\" \/><\/a><\/p>\n<p>The walkthrough covers steps such as Python installation, selection of an interpreter for your project and how to run and debug Python files in VS Code. We hope this will be a quick and helpful guide for those learning or starting Python for the first time in VS Code!<\/p>\n<h2>Improvements in the debugging experience for Python projects<\/h2>\n<p style=\"background: white; margin: 0in 0in 12.0pt 0in;\"><span style=\"font-family: 'Segoe UI',sans-serif; color: #24292f;\">When working with workspaces with no launch.json configuration present, the Python extension would display a debugger configuration menu every time you would debug your Python file or project. This could be particularly annoying when debugging a web application with custom arguments (like Flask, Django or FastAPI, for example).<\/span><\/p>\n<p style=\"background: white; margin: 0in 0in 12.0pt 0in;\"><span style=\"font-family: 'Segoe UI',sans-serif; color: #24292f;\">Now you no longer need to provide a configuration every time you start debugging, as the first selection you make is reused for the rest of the session.<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/10\/Oct21-debugcaching.gif\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-8721\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2021\/10\/Oct21-debugcaching.gif\" alt=\"Caching of Python debug configuration \" width=\"1824\" height=\"1048\" \/><\/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 in Visual Studio Code. Some notable changes include:<\/p>\n<ul>\n<li>python.testing.cwd setting is no longer ignored when discovering or running tests. (<a href=\"https:\/\/github.com\/microsoft\/vscode-python\/issues\/8678\">#8678<\/a>)<\/li>\n<li>Upgraded to Jedi 0.18 and enabled it behind the language server protocol. Remove Jedi-related settings\u00a0python.jediMemoryLimit\u00a0and\u00a0python.jediPath, since they are not used with the new language server implementation. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/11995\">#11995<\/a>)<\/li>\n<li>Removed support for\u00a0rope, ctags\u00a0and pylintMinimalCheckers\u00a0setting. Refactoring, syntax errors and workspace symbols are now supported via language servers. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/10440\">#10440<\/a>, <a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/13321\">#13321<\/a>, <a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/16063\">#16063<\/a>)<\/li>\n<li>Default value of\u00a0python.linting.pylintEnabled\u00a0has been changed to\u00a0false. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/3007\">#3007<\/a>)<\/li>\n<\/ul>\n<p>Special thanks to this month\u2019s contributors:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/anu-ka\">Anupama Nadig<\/a>: Fix casing of text in\u00a0unittest\u00a0patterns quickpick. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/17093\">#17093<\/a>)<\/li>\n<li><a href=\"https:\/\/github.com\/edemaine\/\">Erik Demaine<\/a>: Improve pattern matching for shell detection on Windows. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/17426\">#17426<\/a>)<\/li>\n<li><a href=\"https:\/\/github.com\/ilexei\">ilexei<\/a>: Changed the way of searching left bracket [ in case of subsets of tests. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/17461\">#17461<\/a>)<\/li>\n<\/ul>\n<p>Be sure to <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>We are pleased to announce that the October 2021 release of the Python Extension for Visual Studio Code is now available. This release introduces debugging support for Jupyter Notebooks, our new Python walkthrough and an improvement to the debugging experience for Python files and projects. <\/p>\n","protected":false},"author":1064,"featured_media":8722,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,6],"tags":[],"class_list":["post-8720","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-visual-studio-code"],"acf":[],"blog_post_summary":"<p>We are pleased to announce that the October 2021 release of the Python Extension for Visual Studio Code is now available. This release introduces debugging support for Jupyter Notebooks, our new Python walkthrough and an improvement to the debugging experience for Python files and projects. <\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/posts\/8720","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=8720"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/posts\/8720\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/media\/8722"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/media?parent=8720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/categories?post=8720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/tags?post=8720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}