News

.NET Interactive Now Does .NET Notebooks with VS Code

.NET Interactive users can now use a new Visual Studio Code Insiders experience to work with .NET Notebooks, in addition to other notebook options including Jupyter and nteract.

Formerly called Try .NET (for which there is still a site), the renamed .NET Interactive serves as an interactive documentation generator for .NET Core, providing CLI tools and APIs to let users create interactive experiences across the web, markdown and notebooks.

As mentioned, the popular Jupyter Notebook scheme was previously supported, widely used for use cases including data science, documentation, DevOps and more.

The new VS Code option comes in the just-shipped .NET Interactive Preview 3, announced Sept. 30 by Maria Naggaga, senior program manager.

"In .NET Interactive Preview 2, we announced that in addition to Jupyter Notebook and Jupyter Lab, users could use nteract as well. In this preview, users can add VS Code Insiders to that list. With the VS Code Insiders experience, users can get started with .NET notebooks without needing to install Jupyter. The VS Code experience is still a work in progress, and is only available in VS Code Insiders."

.NET Interactive's GitHub site now lists the following options for sharing code, exploring data, learning and writing apps:

Naggaga also announced the new ability to leverage .NET Interactive polyglot notebooks, taking advantage of the project's multi-language kernel that allows for the creation of notebooks that use different languages together. "You switch languages from one cell to another, as appropriate to the task at hand," she said. "Pulling values into the notebook and moving values between languages are useful capabilities, which we've enabled with a pair of magic commands: #!share and #!value."

The ability to declare a C# variable in a cell and then share it with F# using the above #!share command is shown in this animated GIF:

Sharing a C# Variable with F# Code in Animated Action
[Click on image for larger, animated GIF view.] Sharing a C# Variable with F# Code in Animated Action (source: Microsoft).

.NET Interactive for VS Code is provided by an extension in the VS Code Marketplace, which is in the preview stage, thus prompting the warning: "The Visual Studio Code notebook support that this extension uses is also in preview and design is ongoing, so the extension might not work." It had been installed 2,889 times at the time of this writing.

Other resources include documentation and code samples.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • C# Slides in Usage Ranking of Programming Languages

    "The fact that C# lost three places in the ranking of language communities during the last three years is mostly explained by its slower growth compared to C/C++ and PHP."

  • Telerik UI for Blazor Updated

    Progress announced an update to its Telerik UI for Blazor components, targeting Microsoft's open source Blazor framework that lets C# coders create web apps without having to rely upon JavaScript.

  • Infragistics Unveils UI Components for Blazor

    Infragistics, specializing in third-party UI/UX controls and tools, unveiled a new offering targeting Blazor, Microsoft's red-hot open source framework that allows for C#-based web development instead of traditional mainstay JavaScript.

  • AWS Open Sources Tool for Porting .NET Framework Apps to .NET Core

    Leading cloud computing platform Amazon Web Services open sourced the it announced in July for helping users port old .NET Framework applications to the new .NET Core framework.

  • Uno Platform Ports Windows Calculator to Linux

    Uno Platform has ported the famed Windows Calculator, open sourced last year, to Linux as part of a continuing "proof point" effort to demonstrate the reach of what it describes as the sole UI offering available to target Windows, WebAssembly, iOS, macOS, Android and Linux with single-codebase applications coded in C# and XAML.

Upcoming Events