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 at Converge 360.

comments powered by Disqus

Featured

  • Mastering Blazor Authentication and Authorization

    At the Visual Studio Live! @ Microsoft HQ developer conference set for August, Rockford Lhotka will explain the ins and outs of authentication across Blazor Server, WebAssembly, and .NET MAUI Hybrid apps, and show how to use identity and claims to customize application behavior through fine-grained authorization.

  • Linear Support Vector Regression from Scratch Using C# with Evolutionary Training

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the linear support vector regression (linear SVR) technique, where the goal is to predict a single numeric value. A linear SVR model uses an unusual error/loss function and cannot be trained using standard simple techniques, and so evolutionary optimization training is used.

  • Low-Code Report Says AI Will Enhance, Not Replace DIY Dev Tools

    Along with replacing software developers and possibly killing humanity, advanced AI is seen by many as a death knell for the do-it-yourself, low-code/no-code tooling industry, but a new report belies that notion.

  • Vibe Coding with Latest Visual Studio Preview

    Microsoft's latest Visual Studio preview facilitates "vibe coding," where developers mainly use GitHub Copilot AI to do all the programming in accordance with spoken or typed instructions.

  • Steve Sanderson Previews AI App Dev: Small Models, Agents and a Blazor Voice Assistant

    Blazor creator Steve Sanderson presented a keynote at the recent NDC London 2025 conference where he previewed the future of .NET application development with smaller AI models and autonomous agents, along with showcasing a new Blazor voice assistant project demonstrating cutting-edge functionality.

Subscribe on YouTube