{"id":7875,"date":"2020-07-27T09:54:18","date_gmt":"2020-07-27T17:54:18","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/python\/?p=7875"},"modified":"2020-07-27T09:54:18","modified_gmt":"2020-07-27T17:54:18","slug":"notebooks-are-getting-revamped","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/python\/notebooks-are-getting-revamped\/","title":{"rendered":"Notebooks are getting revamped!"},"content":{"rendered":"<p>The Python Extension for VS Code Insiders is excited to announce the new preview for Native Notebooks! Native Notebooks are VS Code\u2019s newest implementation of notebooks and the Python Extension is leveraging the Native Notebooks API to revamp the data science experience! Users can now benefit from the new functionalities below:<\/p>\n<ul>\n<li>The same extensions that users rely on when editing source code or markdown text in the VS Code Editor are now available in notebooks! For example, you won\u2019t miss your VIM key bindings or your stylishly colored brackets anymore.<\/li>\n<li>In addition to an improved integration between extensions in notebooks, we have drastically improved the load time for notebooks! The following <a href=\"https:\/\/github.com\/fastai\/course-v3\/blob\/master\/nbs\/dl1\/lesson1-pets.ipynb\">notebook<\/a> builds and assesses the accuracy of an image recognition model that differentiates between dog breeds contains 49 code cells, 18 markdown cells, and their outputs (~5MB). The current notebook editor takes about 7 seconds to open this notebook, but the new notebook editor takes <u>less than a second<\/u>!<\/li>\n<li>Last but not least, the new interface has a fresh look and feel along with additional UI changes and cell manipulation capabilities that match VS Code&#8217;s design language that we&#8217;d love to get your feedback on.<\/li>\n<\/ul>\n<p>Our goal is to reduce the time it takes you to get your work done and done well, with the sum of all these cumulative changes.<\/p>\n<p>For additional information on the new Native Notebooks API, click <a href=\"https:\/\/code.visualstudio.com\/api\/extension-guides\/notebook\">here<\/a>.<\/p>\n<h2>How to try out Native Notebooks:<\/h2>\n<p>We are currently exclusively rolling out this new experience in <a href=\"https:\/\/code.visualstudio.com\/insiders\/\"><strong>VS Code Insiders <\/strong><\/a>build. If you do not already have it, download and install the latest version of the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-python.python\">Python Extension<\/a> from the marketplace or install it directly from the extension gallery in Visual Studio Code.<\/p>\n<p>To try the new native notebook, follow the instructions below:<\/p>\n<ol>\n<li>Make sure the Python extension is activated. You can do so by creating a new notebook (Ctrl + Shift + P \u201cPython: Create New Blank Jupyter Notebooks&#8221;).<\/li>\n<li>File -&gt; Open Folder\u2026<\/li>\n<li>Right click on the .ipynb file you would like to open and select \u201cOpen in preview Notebook Editor\u201d.<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"alignnone wp-image-7877 size-full\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2020\/07\/Native-Notebooks-Inst-e1595019625739.png\" alt=\"How to try native notebooks\" width=\"1395\" height=\"1300\" srcset=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2020\/07\/Native-Notebooks-Inst-e1595019625739.png 1395w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2020\/07\/Native-Notebooks-Inst-e1595019625739-300x280.png 300w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2020\/07\/Native-Notebooks-Inst-e1595019625739-1024x954.png 1024w, https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2020\/07\/Native-Notebooks-Inst-e1595019625739-768x716.png 768w\" sizes=\"(max-width: 1395px) 100vw, 1395px\" \/><\/p>\n<h2>What else is new?<\/h2>\n<ul>\n<li>File management: Save as, Rename, Open from file, etc.<\/li>\n<li>Highly requested shortcuts: Undo\/Redo (Ctrl + Z\/Command Z)<\/li>\n<li>Cell execution times to help you better understand the performance of your code and notebooks as a whole<\/li>\n<li>Quick cell manipulation\n<ul>\n<li>Join cells using the command \u201cNotebook: Join with Next Cell\u201d or \u201cNotebook: Join with Previous Cell\u201d for easy merging<\/li>\n<li>Split cells at your cursor location using the \u201cSplit Cell\u201d icon on the cell toolbar<\/li>\n<li>Drag and drop capabilities for easy position rearrangement<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone wp-image-7878 size-full\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2020\/07\/July20-JoinSplitCell.gif\" alt=\"Joining and Splitting Cell\" width=\"1706\" height=\"842\" \/><\/p>\n<ul>\n<li>Collapsible cells and code blocks to ensure that irrelevant code is neatly tucked away while you are focusing on the most pertinent code and optimizing screen space.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone wp-image-7879 size-full\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2020\/07\/July20-CollapseCellsCode.gif\" alt=\"Collapsing Cell\" width=\"1706\" height=\"926\" \/><\/p>\n<h2>What\u2019s in store?<\/h2>\n<p>We will be working diligently to roll over the current fan favorite features such as data viewer and variable explorer as well as newly released functionality such as run-by-line and Gather to ensure feature parity with the existing Python notebooks experience!<\/p>\n<h3>Keep an eye out for continued improvement of Native Notebooks! If you would like to contribute to the development please leave a suggestion on our <a href=\"https:\/\/github.com\/microsoft\/vscode-python\/issues\">vscode-python GitHub repo<\/a>. We look forward to hearing your feedback!<\/h3>\n<p>&nbsp;<\/p>\n<h5><span style=\"text-decoration: underline;\">For Early Adopters:<\/span><\/h5>\n<p>VS Code Insiders has the most recent code pushes and may lead to the occasional broken build. It is recommended to make a copy of your file prior to trying the new experience.<\/p>\n<h3><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Notebooks in VS Code are getting revamped! This experience is currently being exclusively rolled out to VS Code Insiders so be sure to download today to try it out!<\/p>\n","protected":false},"author":33035,"featured_media":7906,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[4,1,6],"tags":[14,17,19],"class_list":["post-7875","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jupyter","category-python","category-visual-studio-code","tag-jupyter","tag-python","tag-visual-studio-code"],"acf":[],"blog_post_summary":"<p>Notebooks in VS Code are getting revamped! This experience is currently being exclusively rolled out to VS Code Insiders so be sure to download today to try it out!<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/posts\/7875","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\/33035"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/comments?post=7875"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/posts\/7875\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/media\/7906"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/media?parent=7875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/categories?post=7875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/tags?post=7875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}