Jupyter

Updating .NET Interactive

I’ve been using Jupyter Notebook with PowerShell since the early releases of of the Public Preview of PowerShell Support in Jupyter Notebooks in March 2020. I’ve written about how to use PowerShell Jupyter Notebook with Docker and Binder and even enabling C#, F# & PowerShell .NET Interactive Kernels in AzureML. If you were an early adopter like myself you probably also ran into issues updating .NET Interactive after you updated to PowerShell 7.1.x (see this post for how to update). Today there is a new release of .NET Interactive. Before embarking on generating some new PowerShell Jupyter Notebooks I needed to investigate updating .NET Interactive on my development machines to be current.

Littered in a number of the posts linked above is the process to setup a Jupyter Notebook environment from scratch in a number of different scenarios. And obviously this post on uplifting an environment to support PowerShell 7.1x with .NET Interactive. This post is for future Darren when I want to quickly go through the steps of identifying what versions of the dependencies I have on a system and then the process to quickly uplift it to the latest.

.NET SDKs Runtimes and Tools

Running dotnet –info will give you the .NET SDKs and Runtimes installed on your local system.

dotnet --info

To get the .NET Tools that are installed and their versions use the following command.

dotnet tool list --global

Identifying Available Updates

Using the dotnet command line interface we can query to find the latest release of .NET Interactive from Nuget.

dotnet tool search dotnet-interactive

Updating .NET Interactive

I can see that the latest available version from Nuget is 1.0.245901 and the currently installed version on this particular computer is 1.0.221505.

To update to the more recent release as of today for my system is therefore possible using the following command.

dotnet tool update --global Microsoft.dotnet-interactive --version 1.0.245901

Summary

In summary, dotnet –info will return the current SDK’s and Runtimes. dotnet tool list –global will tell me what version of .NET Interactive I have. dotnet tool search dotnet-interactive will tell me what the latest version that is available is and dotnet tool update –global Microsoft.dotnet-interactive will update the local system. Hopefully this helps someone else out, as well as making it easier for me updating next time.

Darren Robinson

Bespoke learnings from a Microsoft Identity and Access Management Architect using lots of Microsoft Identity Manager, Azure Active Directory, PowerShell, SailPoint IdentityNow and Lithnet products and services.

View Comments

Recent Posts

PowerShell 7 Support Arrives for the Granfeldt PowerShell Management Agent

For over a decade, the Granfeldt PowerShell Management Agent (PSMA) has been the bedrock for…

1 week ago

PowerShell MCP Azure Function Server

Recently under the experimental Azure Functions build Microsoft Developer Advocates have shown enabling Azure Functions…

1 month ago

EntraPulse – Your AI-Powered Gateway to Microsoft Graph & Docs

Today, I’m super excited to finally announce the Beta release of EntraPulse Lite – a…

3 months ago

Lokka MCP Authentication Enhancements

I'm excited to share some significant authentication enhancements I've contributed to the Lokka MCP Server…

4 months ago

AI Inception: Building AI Solutions with AI for AI

Last month I had the pleasure of speaking at the Sydney event for Global Azure.…

4 months ago

A Have I Been Pwned MCP Server for Claude

Model Context Protocol (MCP) is a powerful framework that extends AI clients like Claude and…

7 months ago

This website uses cookies.