Verso.Python 1.2.2

dotnet add package Verso.Python --version 1.2.2
                    
NuGet\Install-Package Verso.Python -Version 1.2.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Verso.Python" Version="1.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Verso.Python" Version="1.2.2" />
                    
Directory.Packages.props
<PackageReference Include="Verso.Python" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Verso.Python --version 1.2.2
                    
#r "nuget: Verso.Python, 1.2.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Verso.Python@1.2.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Verso.Python&version=1.2.2
                    
Install as a Cake Addin
#tool nuget:?package=Verso.Python&version=1.2.2
                    
Install as a Cake Tool

Verso.Python

Python language kernel extension for Verso notebooks.

Overview

Runs the Python already installed on the machine as a separate process, so a notebook sees the same interpreter, virtual environment, and packages a terminal would. Nothing is embedded and no Python is bundled. Requires Python 3.8 or newer, including 3.13 and 3.14.

The interpreter comes from an explicit setting, the VERSO_PYTHON variable, a #!python selection, an active virtual environment, an active conda environment, a .venv or venv directory beside the notebook or above it, PATH, or a well-known install location, in that order. The first candidate that reports a supported CPython version wins.

Features

  • Python execution with persistent state across cells, output streamed as it is produced, and full traceback formatting
  • Interrupt and restart, including a restart that clears imported module state
  • Crash isolation: a native crash takes down the interpreter, reports itself, and the next cell runs in a fresh one
  • IntelliSense answered inside the running interpreter, so it sees the packages that are actually installed and the names earlier cells defined. Uses jedi when available, with standard library fallbacks for completions and syntax diagnostics
  • Bidirectional variable sharing between Python and every other kernel in the notebook
  • Matplotlib integration with automatic figure capture, including figures produced part-way through a cell
  • Interactive widgets built on ipywidgets or anywidget, live in both editors: moving a control reaches the interpreter, the author's callbacks run, and the notebook saves the state a reader last saw. A file without a kernel behind it draws the same widget from that state and says so
  • #!bind to share a widget's trait as a notebook variable, so a C#, F#, or PowerShell cell reads the control's value and writing it moves the control
  • display() function supporting _repr_html_(), _repr_png_(), _repr_svg_(), with an optional MIME type hint (for example display(obj, "application/json"))
  • input() support, prompting in the notebook
  • Package management through #!pip, the %pip and ! shell escapes, consent-gated install on import, inline script metadata, and a per-notebook requirement list, all uv-accelerated when uv is present
  • Interpreter selection with #!python, including #!python --list to see what was discovered

Installation

dotnet add package Verso.Python

This package ships with Verso and is loaded automatically, so a notebook needs no reference to it. Add it directly when embedding the engine in your own application.

It depends on Verso.Abstractions and nothing else. No Python is bundled and no interpreter is embedded, so the package carries no native dependency of its own.

Quick Start

import json
data = {"name": "Verso", "version": 1}
print(json.dumps(data, indent=2))

Install packages explicitly:

#!pip pandas matplotlib

Or just import them, and approve the prompt:

import pandas as pd

Check or change the interpreter:

#!python --list
#!python /usr/local/bin/python3.13
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.2 120 9/4/2026
1.2.1 108 8/8/2026
1.2.0 99 8/8/2026
1.1.3 115 7/29/2026