Repository navigation
verso-v1.0.6
·
259 commits
to main
since this release
Feature release adding a Python kernel, per-cell language selection, eager kernel warm-up for instant IntelliSense, a cell interaction API, and several execution and tooling improvements.
Python Kernel
- Full Python kernel powered by pythonnet, with code execution, completions, diagnostics, and hover info via Jedi
- Virtual environment support with automatic
venvoverlay,#!pipmagic command, and package installation that skips already-installed packages - Matplotlib plot capture renders inline as HTML images
- Cross-platform Python discovery with enhanced Windows detection (registry,
pylauncher, common install paths) - Sample notebook (
sample-python.verso) included
Per-Cell Language Selector
- Code cells now show a language dropdown in the toolbar, allowing you to switch a cell's kernel language without deleting and re-creating the cell
- Hover-reveal design: at rest the label looks the same as before; on hover it reveals a background highlight and chevron; clicking opens a popup with all registered kernels
- Works in both Blazor Server and the VS Code extension
- Language changes in VS Code correctly mark the document as dirty
- Changing the default kernel in the Metadata panel now propagates to the host, so new cells use the updated default in both Blazor Server and VS Code
Eager Kernel Warm-Up
- Kernels are now initialized in the background as soon as a notebook is opened, based on the languages present in its cells and the default kernel
- Switching a cell to a new language also triggers background initialization of that kernel
- IntelliSense handlers ensure the kernel is initialized before returning results, so completions, hover, and diagnostics work immediately rather than requiring a cell execution first
- Initialization is thread-safe and deduplicated using a concurrent task cache
Cell Interaction API
- New
ICellInteractionHandlerinterface lets extensions respond to user interactions originating from rendered cell output (button clicks, link navigation, etc.) CellInteractionContextcarries the cell ID, region, interaction type, and payloadIVersoContext.UpdateOutputAsyncenables extensions to patch cell output in place without re-executing the cell- Full wiring across Blazor Server, WASM, and the VS Code host
Execution and Toolbar Improvements
- "Run All" now executes all cell types, not just code cells
- Toolbar gains an
OnInterceptActionhook so page-level logic can intercept and customize toolbar actions before they execute - F# kernel adds
--multiemit+to default options for better incremental compilation