Verso.Python
1.2.2
dotnet add package Verso.Python --version 1.2.2
NuGet\Install-Package Verso.Python -Version 1.2.2
<PackageReference Include="Verso.Python" Version="1.2.2" />
<PackageVersion Include="Verso.Python" Version="1.2.2" />
<PackageReference Include="Verso.Python" />
paket add Verso.Python --version 1.2.2
#r "nuget: Verso.Python, 1.2.2"
#:package Verso.Python@1.2.2
#addin nuget:?package=Verso.Python&version=1.2.2
#tool nuget:?package=Verso.Python&version=1.2.2
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
ipywidgetsoranywidget, 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 #!bindto 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 controldisplay()function supporting_repr_html_(),_repr_png_(),_repr_svg_(), with an optional MIME type hint (for exampledisplay(obj, "application/json"))input()support, prompting in the notebook- Package management through
#!pip, the%pipand!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 --listto 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 | Versions 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. |
-
net10.0
- Verso.Abstractions (>= 1.2.2)
-
net8.0
- Verso.Abstractions (>= 1.2.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.