Article complete

Microsoft Releases Polyglot Notebooks, Multi-Language Extension for VS Code

Now you can share your variables across languages without jumping from tool to tool

Visual Studio Code logo on a yellow background, representing Microsoft's new Polyglot Notebooks extension.

Key takeaways

  • Microsoft has released Polyglot Notebooks, enabling multiple programming languages within a single notebook in Visual Studio Code.
  • Users can share variables seamlessly between languages, enhancing workflow and eliminating the need for manual data transfer.
  • The extension supports various languages including C#, F#, PowerShell, and SQL, promoting flexibility in coding.
  • Developers can write code natively without needing wrapper libraries, streamlining the coding experience.

Takeaways drafted with AI from the article text.

Polyglot Notebooks allow users to use various programming languages in one notebook with full language server support. Moreover, they enable users to share variables between languages, allowing for a seamless workflow. Users can avoid switching between different tools and manually transferring data, which can interrupt their workflow.

The Polyglot Notebooks currently support:

  • C#
  • F#
  • PowerShell
  • JavaScript
  • HTML*
  • Mermaid*
  • SQL
  • KQL (Kusto Query Language)
https://twitter.com/code/status/1636056741119926276

This interconnection enables several benefits for users. Connecting and querying Microsoft SQL server databases and Kusto clusters is now possible by natively writing in SQL or KQL. 

Moreover, there is no need for wrapper libraries for using multiple languages in the same notebook. Developers can natively write code in their preferred language. You can also share your variables to another language without jumping from tool to tool. 

Polyglot Notebooks within VS Code leverage .NET Interactive, an innovative engine developed using .NET technology. This engine can execute various programming languages and allow for variable sharing between them. Since it can act as a kernel within the context of notebooks, it enhances the overall experience of using Polyglot Notebooks.

While the Polyglot Notebooks extension in Visual Studio Code is now generally available, but the .NET Interactive APIs that power it are still in preview.

Published Updated

Spotted an error? Tell our editors. Read our editorial standards and corrections.

Selling to AI teams? Put your brand in front of the 5M+ people who read AIM every month. Plan a campaign

More in this story

VS Code · 5 stories
  1. 5 Best IDEs For Data Scientists
  2. GitHub Copilot vs No-Code platforms - The race to replace developers?
  3. AWS launches CodeWhisperer, the Copilot slayer
  4. JupyterLab Desktop Latest Upgrade Makes Workflows Faster & Streamlined 
  5. You are here: Microsoft Releases Polyglot Notebooks, Multi-Language Extension for VS Code
About the author

Journalist

Mohit writes about AI in simple, explainable, and often funny words. He's especially passionate about chatting with those building AI for Bharat, with the occasional detour into AGI.

All stories
Belamy · Daily

The day’s AI news, before your first meeting.