{"id":43601,"date":"2022-12-12T10:05:00","date_gmt":"2022-12-12T18:05:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet\/?p=43601"},"modified":"2024-12-13T14:20:11","modified_gmt":"2024-12-13T22:20:11","slug":"polyglot-notebooks-december-2022-release","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/polyglot-notebooks-december-2022-release\/","title":{"rendered":"Polyglot Notebooks &#8211; Now with .NET 7, C# 11, and F# 7 Support!"},"content":{"rendered":"<p>We are pleased to announce the December 2022 improvements to Polyglot Notebooks for Visual Studio Code. Make sure to install the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-dotnettools.dotnet-interactive-vscode\">Polyglot Notebooks extension<\/a> from the VS Code Marketplace, or install it directly from the extension gallery in Visual Studio Code. <em>If you haven\u2019t read about our latest announcement regarding the difference between .NET Interactive and Polyglot Notebooks, we recommend you <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/dotnet-interactive-notebooks-is-now-polyglot-notebooks\/\">read this first<\/a>.<\/em><\/p>\n<h2>Upgrade to .NET 7<\/h2>\n<p>Polyglot Notebooks has recently upgraded to depend on .NET 7. The extension now requires the .NET 7 SDK to work so <a href=\"https:\/\/dotnet.microsoft.com\/download\/dotnet\/7.0\">update today<\/a>! To learn more about .NET 7, <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-dotnet-7\/\">read our announcement<\/a>!  <\/p>\n<h2>Support for C# 11 and F# 7<\/h2>\n<p>As part of the upgrade to .NET 7, Polyglot Notebooks now has support for C# 11 and F# 7. To see all the exciting new features you can use in Polyglot Notebooks, review the following resources: <\/p>\n<ul>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/welcome-to-csharp-11\/\">Welcome to C# 11<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/dotnet\/csharp\/whats-new\/csharp-11\">What&#8217;s new in C# 11<\/a><\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-fsharp-7\/\">Announcing F# 7<\/a><\/li>\n<\/ul>\n<h2>Improvements to SQL and KQL with the new dynamic kernel picker<\/h2>\n<p>When establishing a connection with a Microsoft SQL Server or Kusto Cluster, you need to alias the connection using the <code>\u2013kernel-name<\/code> parameter in the <code>#!connect<\/code> command. In order to then declare which database connection you want to query against, you previously would have had to add a magic command using the alias at the beginning of each cell.<\/p>\n<p>Before the dynamic kernel picker: <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/user-images.githubusercontent.com\/19276747\/204938317-3432b45a-9621-420b-ab72-8dfc2910538e.png\" alt=\"image\" \/><\/p>\n<p>With the dynamic kernel picker, you can now declare which database connection you are querying in the bottom right of the cell instead of using a magic command. Simply add a new code cell after establishing your connection, click on the dynamic kernel picker, and select the alias you created for your connection. Then write your native SQL or Kusto code! <\/p>\n<p>With the dynamic kernel picker: <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/user-images.githubusercontent.com\/19276747\/204938475-276a9c1a-0f0c-4326-8d95-7725e6e32750.png\" alt=\"image\" \/><\/p>\n<h2>Summary<\/h2>\n<p>Be sure to <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-dotnettools.dotnet-interactive-vscode\">download the Polyglot Notebooks extension<\/a> for Visual Studio Code now to try out the above improvements. If you run into any problems or have suggestions, <a href=\"https:\/\/github.com\/dotnet\/interactive\/issues\/new\/choose\">please file an issue<\/a> on the <a href=\"https:\/\/github.com\/dotnet\/interactive\">.NET Interactive GitHub<\/a> page. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The December 2022 release of the Polyglot Notebooks extension for Visual Studio Code is now available. This release includes upgrades to .NET 7, support for C# 11 and F# 7, and improvements to the SQL and KQL kernel experience!<\/p>\n","protected":false},"author":33035,"featured_media":43744,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[685,756,636,7593],"tags":[7685,7684,7686,7578],"class_list":["post-43601","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet","category-csharp","category-fsharp","category-visual-studio-code","tag-net-interactive","tag-notebooks","tag-polyglot-notebooks","tag-vs-code"],"acf":[],"blog_post_summary":"<p>The December 2022 release of the Polyglot Notebooks extension for Visual Studio Code is now available. This release includes upgrades to .NET 7, support for C# 11 and F# 7, and improvements to the SQL and KQL kernel experience!<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/43601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/33035"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=43601"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/43601\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/43744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=43601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=43601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=43601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}