Skip to content

Releases

verso-v1.2.3

Choose a tag to compare

@github-actions github-actions released this 16 Oct 00:35
6f2e3dd

Release showing each kernel's errors and warnings in the cell editor as you type, letting Console.ReadLine() and input prompts work in C# and F# cells, translating the five showcase layouts and giving extension authors what they need to ship their own translations, theming cell editors from the active VS Code color theme, letting cell editors grow to fit their content, resolving NuGet floating versions and ranges the way dotnet restore does, running notebook post-processors in every host, asking before a save from .ipynb replaces an existing .verso, writing notebook text as itself so a workspace search can find it, passing the cell and output channels through to formatters, and fixing dropped transitive packages, lost C# completions after a re-run, notebook shortcuts firing inside text fields, and widgets that needed IPython after a mid-session install.

Upgrade Notes

  • NuGet versions other than an exact pin may now resolve differently. 1.* stays within major version 1, *-* picks up prereleases, and a range such as [1.0.0,2.0.0) takes the lowest version it allows, as dotnet restore does. Before, every one of these quietly became the latest stable release. A version Verso cannot read, such as latest, is now an error instead of the latest stable release
  • Post-processors now run in every host. verso serve, verso run, verso export and the REPL used to skip them, so a .NET Interactive notebook's #!fsharp and #!sql cells stayed C# cells there. If you wrote a post-processor, it now runs wherever a notebook is opened or saved, and one that throws stops the notebook from opening
  • verso serve --preserve-format now really writes back to the .ipynb. Before, the Save button ignored the option and wrote a .verso file anyway. The .ipynb is written from Verso's model of the notebook, so cell attachments, cell tags and notebook metadata other than the kernel are not carried over
  • Cached NuGet packages with translated resources are downloaded once more. Verso now keeps each language's resource assemblies in its own folder, so a cached package that has them flattened beside its main assemblies is extracted again on first use. That needs a reachable feed once; offline, the reference fails until the machine is back online
  • An HTTP redirect no longer fails the cell. With @no-redirect, a 3xx response is a result, not an error; 4xx and 5xx still fail the cell. The httpStatus variable is an int, which the docs now say
  • verso run --output-file without --output now writes JSON. Before, the format stayed text and the file was never written

New: Diagnostics in the Cell Editor

  • Errors and warnings from the kernel appear as squiggles in the cell editor shortly after you stop typing, when a cell gains focus, and after the cell runs, with the error code and source on hover. Every kernel computed them before, but nothing showed them, so a type error in a C# or F# cell only appeared when the cell ran. Works in VS Code and verso serve. Asked for by @Jonathan-Schaefer-git (#123)
  • Names defined in cells that already ran are known, so using them is not an error, and restarting a kernel clears its markers
  • Requests wait while any cell is running, so checking a cell never delays a run
  • JavaScript and TypeScript cells now report syntax errors. Monaco's own TypeScript checking is turned off in cells, because it could not see earlier cells and flagged display, require and top-level await as errors
  • HTML, Mermaid and SQL cells, and code cells with no language of their own, now get diagnostics, hover and completions from the same kernel that runs them
  • SQL and HTTP cells stay quiet until they have seen the variable store, C# knows notebook parameters once they are injected, and an unfinished #r "nuget: line no longer shifts the markers below it, so a fresh notebook does not light up with false errors

New: Interactive Input in C# and F#

  • Console.ReadLine() and Console.Read() in a C# or F# cell open an input box in VS Code and verso serve. Text the cell wrote just before reading, such as the Name: of Console.Write("Name: "), becomes the prompt, and the answer is echoed into the output the way a terminal shows it. Asked for by @bfcamara (#107)
  • C# cells also get await GetInputAsync("User:") and await GetPasswordAsync("Password:"), the second with a masked input box
  • Dismissing the prompt gives null, the same as end of input in a terminal, and interrupting a cell that is waiting at a prompt stops it
  • verso run and verso repl have no input box, so Console.ReadLine() reads the terminal or a pipe there, as any console program would. Console.ReadKey() is not supported in cells

New: Localized Extensions

  • The five showcase layouts, DAG Notebook, Slide Studio, Grid Studio, Form Studio and Image Studio, follow the interface language in German, Spanish, Japanese and Simplified Chinese. Built-in names such as Form Studio's widget labels and Image Studio's layer names follow the language too, while names you type stay as you typed them
  • Extension authors get IVersoContext.UICulture for the reader's interface language and StringTable.From for handing translated strings to an isolated layout, with each missing string falling back through the parent language to English. A new Localization guide in the extension docs covers both inline and isolated layouts
  • Isolated layouts receive the language as uiCulture on verso/init, and their frame document carries a matching <html lang>. The layout bridge protocol moves to 1.1 for this; a layout built for 1.0 keeps working
  • Translations shipped in an extension's NuGet package now load. Verso used to flatten each language's resource assembly into one folder, where .NET never looks for it

Improved: Cell Editors

  • In VS Code, cell editors take their colors from the active color theme, including its syntax colors and your editor.tokenColorCustomizations, and follow a theme change straight away instead of using stock light and dark palettes. Type and method names stay in the text color, because cells have no semantic highlighting yet. Reported by @redxeagle1 (#108)
  • In verso serve, cell editors take their syntax colors from the Verso theme
  • Cell editors grow to fit their content from 3 lines up to 30, then scroll inside. A longer cell says how many of its lines are showing and how to raise the limit: the verso.editor.maxLines setting in VS Code, or verso serve --max-cell-lines, where 0 removes the limit. The compare view keeps its own 40-line limit. Asked for by @mna-intend (#119)

Improved: NuGet Packages

  • Floating versions and version ranges in #r "nuget:" now resolve the way dotnet restore does, in C# and F#; see the upgrade note above. The README and the Polyglot migration guide show the syntax. Reported by @mna-intend (#124)

Improved: Notebook Files

  • .verso and .ipynb files store source text as itself rather than as \u escapes, so quotes, <, >, + and non-English text in a cell can be found by a workspace search and read in a diff. Older files with escapes still open the same. Reported by @mna-intend (#118)
  • When saving a notebook opened from an .ipynb would replace an existing .verso file of the same name, VS Code and verso serve now ask first and point at the option that keeps the original format. Before, a Jupyter copy made with verso convert could overwrite its own original. Saving to a .verso file directly does not ask, and the command line is unchanged. Reported by @xkqg (#114)
  • Mermaid, HTML and extension cells survive a round trip through .ipynb. They were written as raw cells carrying their Verso type, but read back as plain raw cells (#114)
  • Post-processors run after every open and before every save in every host, and verso convert also runs them before writing its output. Reported by @xkqg (#113)

Improved: Formatters

  • A formatter now receives the cell it is formatting for, as IFormatterContext.CellId, along with the cell's output channels, so it can open a channel and stream into it. The active layout, collapsed sections, interface language, and the output-update and file-download calls now reach formatters run from C# and F# cells too, instead of their defaults. CellId is a new member with a default, so existing formatters keep working. Contributed by @Jonathan-Schaefer-git (#122)

Improved: Command Line and Appearance

  • verso run --verbose reports a cell that produced an error output as Failed rather than as succeeded
  • Light surfaces such as menus and dialogs are white, with a subtle ring and shadow for depth, and sunken surfaces are a shade darker. A theme that does not set these values gets the new defaults
  • A refreshed Verso icon, at a fraction of the old file size

Fixed

  • A package first reached through a long dependency chain no longer loses its own dependencies. The resolver walked depth first with a depth limit of six, so a package met deep in a chain was marked visited there and its dependencies were cut off, which surfaced later as CS0234 or a FileNotFoundException. Both the C# and F# resolvers now walk one level at a time and keep the version declared nearest the notebook. Reported by @mna-intend (#112)
  • C# completions keep working after a cell is edited and run again. Re-running a cell used to leave numbers. offering a handful of items and no members. A later cell's declaration now also takes over from an earlier one of the same name. Reported by [@redxeagle1](https://github.co...
Read more

verso-v1.2.2

Choose a tag to compare

@github-actions github-actions released this 04 Sep 02:10

Release letting Markdown cells typeset TeX math and draw Mermaid diagrams in place, rendering a DataFrame as a typed, scrollable table through a new formatter built into every host, putting Verso's notebook tools in front of Copilot agent mode for the first time and only while a notebook is open, documenting the five showcase layouts, and adding two PowerShell sample notebooks that build Vega-Lite charts over DataFrames, with notice that a coming release will require .NET 10.

Upgrade Notes

  • A coming release will drop .NET 8 and require .NET 10 or newer. .NET 8 leaves Microsoft support on November 10, 2026, and .NET 9 ends the same day, so the host, the command line tool and the VS Code extension will move to .NET 10 ahead of that date. Nothing changes in this release: .NET 8, 9 and 10 all still run Verso. Installing the .NET 10 runtime now, or accepting the extension's offer to install one, means the switch will pass unnoticed when it comes. Verso's library packages already ship .NET 10 builds beside .NET 8, so an extension can move ahead of the host, and one built for .NET 8 keeps loading on a .NET 10 host
  • A DataFrame now renders as a table before any other formatter sees it. A Microsoft.Data.Analysis.DataFrame used to fall through to the expandable object graph and run into the wide-type output budget. If you wrote a formatter extension of your own for DataFrames, give it a priority above 50 to keep it in front

New: Math and Diagrams in Markdown Cells

  • Markdown cells typeset TeX math with KaTeX. Wrap an inline formula in single dollars, $E = mc^2$, or a display equation in double dollars on lines of its own; the \(...\) and \[...\] delimiters work too. A dollar amount such as $5 stays ordinary text, and a dollar sign inside inline code or a fenced block stays code
  • A fenced code block tagged mermaid renders as a diagram in place, so prose and diagrams can share a cell, and @variable substitution applies inside the fence as it does to the rest of the cell. Asked for by @sheng-jie (#101)
  • Both carry through to HTML export. An exported notebook loads KaTeX and Mermaid only when a cell needs them, and a formula that fails to typeset leaves its source text in place
  • The dedicated Mermaid cell type remains the one that offers diagram keyword completions and reports an unresolved variable as a diagnostic, and the guides say which to reach for

New: DataFrame Tables

  • A Microsoft.Data.Analysis.DataFrame returned from a PowerShell or .NET cell renders as a scrollable table with column names and types, sticky headers and visible nulls, through a new Verso.DataFrame formatter that is built into the VS Code extension, verso serve and verso run and is also published as its own NuGet package. An explicit Display call renders the same way, including one made from PowerShell that still carries its PSObject wrapper. Contributed by @eosfor (#94)
  • The table is a bounded preview: the first 100 rows and 50 columns, with the frame's total row and column counts in the footer, and any cell value longer than 200 characters shortened, so a wide or long frame cannot swamp the output
  • The formatter reads a frame through reflection and takes no dependency on Microsoft.Data.Analysis, so the PowerShell module or kernel that created the frame keeps ownership of the assembly and there is no second copy to conflict with
  • Table text, including the empty-frame message and the footer counts, is translated into German, Spanish, Japanese and Simplified Chinese alongside English

Improved: Copilot Agent Mode

  • Copilot agent mode can now see Verso's twenty notebook tools. They had been registered in a way that kept them out of the agent tool picker, so only the @verso participant could reach them and the README's promise of agent mode without typing @verso did not hold. Diagnosed and fixed by @4D-Bird in #102, recreated here with their agreement
  • The tools are offered only while a notebook is open, so a chat session about something else does not carry twenty notebook tools it cannot use, and each one can be pulled into a prompt by name, #verso_runAll for instance
  • Each tool carries a short description in the tools picker, translated into the five interface languages, in place of the long model-facing text that used to show there

Improved: Documentation and Samples

  • A new Showcase Extensions section documents the five sample layouts, DAG Notebook, Slide Studio, Grid Studio, Form Studio and Image Studio, with a page and screenshots for each, how inline and isolated layouts differ, and how to install or build one. The layouts guide lists all five and links to it
  • A Palmer Penguins sample notebook loads a public CSV into a typed DataFrame from PowerShell, inspects and groups it with every frame drawn by the new formatter, and builds three interactive Vega-Lite charts from PowerShell hashtables. Contributed by @eosfor (#95)
  • A Deneb Showcase sample notebook adapts ten Vega and Vega-Lite visualizations from David Bacci's Deneb Showcase to refreshable public datasets, from a calendar heatmap of daily weather to a bar chart race of World Bank population, with the download and display steps split so a chart can be pointed at a different year or selection without fetching again. Contributed by @eosfor (#103)
  • The Interactive Widgets and Python Packages guides now say when a #!pip line is needed and when it is not. In the editor the default install policy offers to install whatever a cell imports and cannot find, while verso run --auto-install installs only distributions Verso keeps a mapping for, so a package that installs under its import name, ipywidgets among them, still needs the line on the command line
  • The README describes DataFrame tables and math and diagrams in Markdown and links the showcase section, the architecture pages list Verso.DataFrame and the KaTeX interop, and the known issue about wide framework types no longer cites DataFrame as its example (VERSO-007)

Improved: Contributing

  • The DCO check now rejects a commit authored or signed off with a GitHub noreply address, since nobody can be reached through one, and CONTRIBUTING.md says so

Fixed

  • A Mermaid cell no longer fails silently when the code editor's module loader was already on the page, which in a real notebook it usually is. Mermaid's bundle registered itself with that loader and threw, and the failed load then left the library dead for the rest of the page. Both the VS Code extension and the browser now load Mermaid in a way the editor's loader cannot see, and several diagrams rendering at once share a single load

verso-v1.2.1

Choose a tag to compare

@github-actions github-actions released this 08 Aug 15:25

Release making Python widgets live rather than pictures of themselves, so a slider drawn in a cell keeps talking to the interpreter that made it and can drive a computation written in another language, translating the interface into four more languages, opening the space beside the notebook to panels contributed by extensions, giving language kernels a formatter extension point so a package can teach Verso to render its own types, and preferring the native libraries a NuGet package ships over whatever the system offers first.

Upgrade Notes

  • Code written after #!import in the same cell now runs. Everything below the directive used to be discarded without a word. A cell that carries boilerplate under an import, on the assumption it was inert, will execute that code for the first time on this release
  • An extension built against Verso.Abstractions 1.2.0 needs a 1.2.0 or newer host. The host accepts an extension whose referenced minor version is at or below its own, so a 1.1 host declines a 1.2.0 extension and asks for a newer host. Patch versions are never compared, which is why extensions kept loading across the whole 1.1 series
  • Formatter extensions should check context.MimeType in CanFormat. Both new interface members have default implementations, so nothing fails to compile, but a formatter that claims a value it cannot render in the MIME type actually requested is now stepped over rather than allowed to answer

New: Live Python Widgets

  • A rendered ipywidgets or anywidget control now stays connected to the Python interpreter that made it for as long as the session runs. Dragging a slider fires the author's Python callback, and Python changing the value moves the control back, both within a cell and across cells
  • ipywidgets Output areas capture prints, displays and clear_output the way a Jupyter kernel does, so interact and interactive_output behave as documented instead of showing nothing
  • A widget with no interpreter behind it, because the file was just opened, was run from the command line, or its kernel restarted, draws visibly inert with a note to run the cell rather than looking like a control that is simply broken
  • Saving a notebook asks each live widget for its current on-screen state, so the file records what you were looking at rather than whatever the cell first drew
  • A new verso.widgets.assetSource setting chooses where a widget's front end JavaScript loads from. Only cdn works today; bundled is reserved for a copy shipped alongside the notebook
  • A new Interactive Widgets guide covers what separates a live widget from a static one, what a saved file holds, how widgets behave with no network, anywidget support, and the size limits that apply

New: Cross-Language Widget Binding

  • #!bind projects a widget's trait into the notebook's shared variables under a name you choose, in both directions, so a slider built in a Python cell can drive a computation written in C# or F#, and writing that variable moves the slider back
  • #!bind --list shows every trait currently projected as a variable, and #!bind --remove <name> stops one from following its widget without deleting the variable
  • A new DAG Notebook showcase layout makes the notebook dependency-aware: running a cell re-runs the cells that read the variables it defines, in dependency order, so a bound control at the top of the graph cascades a run with nothing else clicked

New: Interface Language

  • Verso's interface ships in German, Spanish, Japanese and Simplified Chinese alongside English, covering the notebook UI, the toolbar and panels, kernel messages that land in cell output, and the command line tool
  • Choose a language with --language or the verso.language setting. With neither, Verso follows VERSO_LANGUAGE, then the operating system's own language, then falls back to English
  • verso serve negotiates a language per browser from its Accept-Language header, or pins one for every visitor with verso serve --language
  • Regional tags resolve sensibly, so de-AT reaches German and zh-CN reaches Simplified Chinese, and a tag Verso does not recognize falls through to the next source instead of failing
  • Numbers, dates and currency keep the machine's own formatting whichever interface language is chosen, so a language never changes what a cell computes or what gets written into a notebook
  • Database connection diagnostics, including provider not found and multiple providers registered, are translated along with everything else
  • Translations are checked on every build for missing keys, orphaned keys, mismatched placeholders and empty strings, and a pseudo-locale flags any string still hardcoded in English

New: Notebook Panels

  • An extension can contribute a panel that sits beside the notebook body and toggles from the toolbar, alongside Verso's own Metadata, Extensions, Variables, Settings and Cell Properties panels, by implementing INotebookPanel
  • A panel describes its content as one or more representations ordered richest first, rather than drawing it directly, so the same panel works on every host including one that never touches a browser. Offering a text/plain alternative beside text/html is what keeps a panel useful everywhere
  • A panel can implement IPanelInteractionHandler to respond to clicks and other actions raised inside it, and call RequestRefresh to have the host ask for its content again after something changes

New: Compare Panel

  • A Compare panel picks a baseline and steps through a notebook's changes one at a time while the notebook itself stays visible. Changed cells carry a colored stripe and a badge reading Added, Removed, Modified or Moved, and selecting an entry scrolls to the cell it describes

New: Formatter Extensions

  • Language kernels can hand a runtime value to registered formatter extensions before applying their own rendering, through a new IExecutionContext.TryFormatAsync. PowerShell is the first kernel wired to it, contributed by @eosfor (#93)
  • A formatter extension can declare itself a fallback, so it runs only for an explicit Display call and steps aside when a specialized formatter is present. PowerShell output that no extension claims renders exactly as it did before, through the same table and list formatting, contributed by @eosfor (#93)

Improved: Native Library Resolution

  • A package's own native libraries are now preferred over a same-named library found elsewhere on the system, fixing a class of failure where a plotting library such as ScottPlot died on a native version mismatch it had nothing to do with. Reported and diagnosed by @oxygen-dioxide (#91)
  • Natives resolve against the running process's own architecture and C library rather than the machine's, so a session under architecture emulation, or on a musl based distribution such as Alpine, no longer reaches for a binary it cannot run
  • A native that ships in a separately versioned companion package, as the SQL Server client's networking library does, is now found reliably, and switching a package to another version mid-session no longer risks handing it the wrong version's native
  • An extension that depends on a native library keeps working after a restart, instead of only in the session that installed it

Improved: Python Package Handling

  • A #!pip line naming only packages already present neither runs the installer nor prints anything, so leaving one at the top of a cell you rerun costs nothing after the first time
  • An import that fails on a typo or a missing submodule of a package you already have, such as pandas.frame, is no longer offered as something Verso can install. Only a genuinely absent distribution is

Improved: Extensions Panel

  • Rebuilt as a single list with each package's install state on its own row, in place of three stacked lists, and now showing a package's own icon, publisher, description, download count and capability chips
  • Search results say which package source they came from, rather than the panel assuming everything is from nuget.org
  • Verso's own packages now carry an icon on nuget.org

Improved: Appearance

  • Themes gain an elevation scale for shadows and a shape scale for corner radii, plus AccentForeground, BgSunken and FgSubtle, each exposed as a --verso-elevation-*, --verso-shape-* or --verso-* custom property a theme or layout extension can read. A theme written before this release keeps working and picks up sensible defaults
  • Cells and buttons carry slightly rounder corners, the toolbar is a little taller, and cards, panels and dialogs cast a subtle shadow that lifts them off the page
  • Tooltips across the toolbar and panels replace the browser's own with a faster styled one, and every icon-only button now has an accessible name

Improved: Documentation and Samples

  • A new Sharing a Notebook guide covers turning a GitHub, GitLab or gist URL into a read-only page by swapping the host, pinning a link to a commit so it never moves, and pasting a ready-made Open in Verso badge into a README. It also spells out how a shared page renders: a Markdown file splits into the cells the editor would show, relative images and links are fetched from the repository, a relative link to another notebook opens as a page here rather than on the forge, and every page carries a View source button back to the original file
  • Two PowerShell sample notebooks: micrograd builds an automatic differentiation engine from scratch, renders its computation graph, and trains a small multi-layer perceptron, and mnist reuses that engine on real handwritten digits. Contributed by @eosfor (#92)
  • The README gains screenshots of the dashboard, presentation and compare views, expanded prose on kernels, layouts, panels,...
Read more

verso-v1.1.3

Choose a tag to compare

@github-actions github-actions released this 29 Jul 23:16

Release replacing the in-process Python integration with a supervised host process that runs the CPython installation already on your machine, adding plain Markdown (.md) as a first-class notebook format, drawing ipywidgets-based visualizations inside Python cells, introducing an output model that distinguishes standard error and progress from ordinary output, and bounding object-graph rendering so framework internals can no longer exhaust the output budget.

Upgrade Notes

  • Python cells now need CPython 3.8 or newer installed on the machine. Verso no longer carries a Python runtime. Where no interpreter is found, a Python cell reports what was searched instead of failing silently
  • PythonKernelOptions.PythonDll is ignored. The property remains, so nothing fails to compile, and a session that sets it says once that it has no effect now that Python runs as a separate process. There is no other public API change: the types removed from Verso.Python were all internal

New: Python Runs on Your Own Interpreter

  • Python cells execute in a separate host process that Verso supervises over a loopback connection, replacing the previous in-process integration. The embedded Python runtime is gone; cells run a CPython installation on your machine, 3.8 or newer
  • Each spawn is authenticated with its own token handshake and framed with NDJSON. The accept loop keeps listening until a valid handshake arrives, applies a per-connection greeting timeout, and reports refusals and authentication failures instead of hanging
  • A crashed or wedged interpreter no longer takes the notebook with it: the connection recovers, and a peer reset is treated as end of stream rather than a transport error
  • Interrupting a running cell escalates per platform, SIGINT on Unix and CTRL_BREAK on Windows, respecting console ownership. Windows children are assigned to a job object, so terminating the host takes the whole process tree with it
  • On POSIX the host watches the process that launched it and exits on its own if that process goes away, so an orphaned interpreter cannot linger

New: Interpreter Discovery and Selection

  • Interpreters resolve in a defined precedence order: explicit configuration, VERSO_PYTHON, the interpreter selected for the session, VIRTUAL_ENV, CONDA_PREFIX, workspace virtual environments, PATH, then well-known install locations
  • Candidates are probed with an introspection script and cached by modification time. A probe distinguishes runnable, abandoned, and not-runnable outcomes, and only a probe that finished successfully is cached
  • Validation enforces CPython and the minimum version, and detects PEP 668 externally managed installations so package operations can explain themselves rather than failing obscurely
  • Where the chosen interpreter is not writable, a derived virtual environment is created or reused, using uv when it is available and stdlib venv otherwise
  • #!python inspects, lists, and selects interpreters for the session, reporting the path, version, how it was discovered, and whether the environment is externally managed
  • --python <path> pins the interpreter for verso repl, verso run, and verso serve
  • Discovery is hardened on Windows: the py launcher is resolved by full path, WindowsApps stubs are skipped, launcher and output-drain steps are bounded by timeouts, an overrunning probe is killed instead of left to hang, and installs under %LOCALAPPDATA%\Python are found

New: Python IntelliSense

  • Completions, hover, and diagnostics are computed in the host process against the live session, on a dedicated thread with timeouts, replacing the in-process completion provider
  • The analysis package is provisioned in the background into a per-version tools directory, installed to a staging directory and published atomically so a reader never observes a partial tree

New: Python Package Handling

  • A cell's imports are scanned before it runs; a package the environment lacks is offered for installation, installed, and the cell retried, with a ModuleNotFoundError backstop for imports that scanning cannot see
  • --auto-install on verso run, and a matching environment variable, enables this without prompting
  • Consent prompts distinguish package installs from extension installs and name the environment being modified
  • Notebook-declared requirements refuse installer options and external sources
  • Installer output is summarized by default and can be switched to full detail per kernel, for pip/uv and npm alike. A failed install always prints in full

New: Cross-Process Variable Sharing

  • Values cross to and from Python as data, with wire tagging for shapes JSON cannot carry natively: dates and times, exact decimals, big integers, GUIDs, byte arrays, NaN and infinity, and a DataTable as rows
  • A value with no meaning outside the process that made it (a delegate, a task in flight, an open resource, an F# union case) is still bound to its name, and printing or using it explains which variable it was and why it could not cross
  • Canonical fingerprinting makes identical numbers hash the same under Python's JSON writer and System.Text.Json, which stops unchanged values from being re-injected on every execution
  • Per-variable size budgets, oversize notices, and status tracking. A name beginning with a double underscore is never injected, since Python reserves that prefix for the interpreter's own

New: Python Widget Rendering

  • Libraries that render only as ipywidgets models, among them k3d, ipyleaflet, pythreejs, bqplot, and ipyvolume, now draw in Python cells. Widget state is packaged into a self-contained document (text/x-verso-widget) and given its own auto-resized frame
  • Framed widgets follow the host theme: theme tokens are resolved to concrete colors and injected into the widget document, then re-injected when the theme changes
  • A widget that exports a file, such as a chart snapshot, hands the bytes to the host, which offers a save dialog and writes them. Both a direct click() and a synthetic click dispatched through dispatchEvent are intercepted
  • Widget outputs are never serialized into layout copies, because they are full documents whose scripts would not run when inlined. Layouts render them as live elements instead
  • The HTML exporter unwraps them, and the terminal shows a placeholder

New: Markdown Notebooks

  • Plain Markdown (.md) is a first-class notebook format. Opening one turns prose into markdown cells and recognized fenced code blocks into executable cells. Everything else stays part of the prose: untagged fences, unrecognized tags, indented code, and fences nested inside quotes, lists, or other containers
  • Saving writes plain Markdown back to the same file, with no forced conversion to .verso. Fence style, tag spelling, and CRLF line endings are preserved per cell
  • Cell outputs are not persisted, and neither is anything else the format has nowhere to put: parameters, layout, theme, extension requirements, and saved layout state
  • An Export Verso toolbar action produces a native .verso file carrying the cells and their current outputs, leaving the original file untouched
  • .md is accepted by verso serve, verso run, verso convert, verso repl, and verso export, and --to md converts a native notebook into a readable document
  • In VS Code the Markdown editor stays the default for .md and Verso is offered alongside it. The new verso.showOpenInVersoMenu setting hides the Explorer context-menu entry without removing the Reopen Editor With route
  • Serializers can declare PreservesFormatByDefault, wired through the server, the host handlers, CLI serializer resolution, and REPL save logic
  • A new guide covers the format, and the README, CLI reference, cell types, language kernels, and Jupyter migration pages were updated for it

New: Output Channels, Progress, and Failure Signals

  • An output carries the channel it came from, so text a cell wrote to standard error is labeled and rendered distinctly instead of blending into ordinary output
  • A progress MIME type (text/x-verso-progress) renders as a progress bar, with helpers for producing one
  • --fail-on-stderr on verso run treats anything on standard error as a failure, with the decision centralized so exit codes and summaries agree
  • Background faults are tracked per notebook with attribution heuristics and a bounded queue, replacing the previous global monitor
  • SQL provider notices accumulate through a provider message listener wired into the SQL kernel

Improved: Object Tree Rendering

  • System.* and Microsoft.* types render through ToString() at depth 2 and deeper instead of expanding their property graphs, cutting off the Type to Assembly to DefinedTypes fan-out that could spend the entire 512 KB output budget on reflection internals, contributed by @JoeJoeflyn (#88)
  • Namespace matching is exact, so a user namespace such as Systematic is unaffected. Collections are checked first, so nested lists and arrays still expand. Framework types still expand at depth 0 and 1, and user types at every depth
  • Opacity is applied before cycle detection, so a shared instance such as typeof(int) renders its value rather than [circular reference]
  • Collections reached through framework internals are summarized instead of expanded, which bounds reflection output
  • F# anonymous records format as field tables again

Improved: Cell Preview Interaction

  • Dragging to select text inside a rendered cell preview no longer flips the cell into its editor when the mouse is released. Clicks on interactive controls inside a preview still reach the control, including through shadow DOM

Improved: Packaging and API Documentation

  • Verso.Http and Verso.Python are packed and published alongside the other packages in both the CI and...
Read more

verso-v1.1.2

Choose a tag to compare

@github-actions github-actions released this 18 Jul 19:06

Release adding a cell-level notebook comparison view, a Slide Studio slide-deck showcase layout, markdown that renders as soon as a notebook opens, per-output error isolation with coalesced rendering for output-heavy notebooks, a runtime-partitioned extension store, TypeScript 7 detection with a pinned 6.x toolchain, and fixes across layout resolution, mermaid rendering, imports, and Blazor Server prerendering.

New: Notebook Comparison

  • Compare the open notebook, including unsaved edits, against the last saved file, git HEAD, any branch, tag, or commit, or another notebook file (.verso, .ipynb, or .dib)
  • The view shows added, removed, edited, and moved cells with side-by-side source comparison, and when a cell's outputs changed, the old and new rendered outputs appear next to each other
  • Cells are matched by Verso's stable cell identity, so an edited cell is distinguished from a deleted-plus-added pair; formats without cell identity (.ipynb, .dib) match by content and are labeled as approximate matches
  • Notebook-level changes (title, default kernel, layout, theme, extension requirements, parameters, and saved layout state) are listed at the top, with save-time noise such as the modified timestamp excluded
  • The comparison is read-only and never marks the notebook dirty; on very large change sets, source comparisons load as you expand them
  • In VS Code: a Compare toolbar button, a diff icon in the editor title bar, and the Verso: Compare Notebook with... command

New: Slide Studio Showcase Layout

  • A fourth showcase layout extension, Verso.Showcase.SlideStudio, turns a notebook into a slide deck with a filmstrip of cell previews, an editor and output split view, and a full-screen presenter mode
  • Per-cell presenter flags (include, show source, show output) persist in cell metadata and are editable from the filmstrip, the pane headers, or the properties panel
  • Presenter slides show live outputs, so interactive charts and widgets keep working while presenting
  • The CI and release workflows pack the sample so it ships as a NuGet package alongside the other showcase extensions

New: Markdown Renders on Open

  • A built-in Markdown cell type pre-renders its markup when a notebook opens, so prose arrives already rendered instead of showing raw source until run
  • Rendered markdown is transient: it is stripped on save, does not increment execution counts, and does not mark the notebook dirty
  • The initially selected cell is chosen so a rendered markdown cell does not immediately flip into its editor

Improved: Output Rendering and Resiliency

  • Each cell output renders inside its own error boundary, so a faulty output degrades to an inline error with a Retry action instead of blanking the rest of the notebook
  • Output update notifications are coalesced, reducing whole-page re-renders during output bursts
  • Cell toolbar enabled-state queries are cached and coalesced, and re-query when variables, extensions, or kernel state change, cutting host traffic during re-renders
  • The Monaco editor only receives a language change when the language actually changed, reducing webview main-thread traffic
  • Non-editable cells auto-execute once instead of repeatedly before their first output arrives
  • The F# Interactive session initializes on a thread-pool thread, avoiding deadlocks on context-bound threads during startup and kernel restart

Improved: Extension Store Runtime Partitioning

  • Managed extension installs are stored under a per-target-framework subfolder (for example net8.0), so hosts running different .NET runtimes keep compatible copies side by side instead of overwriting each other's assemblies
  • Loading selects the newest compatible runtime folder, and an assembly's required runtime is inferred from its metadata without loading it

Improved: TypeScript 7 Detection

  • Auto-installed TypeScript is pinned to the 6.x line; TypeScript 7 removed the JS compiler API the kernel depends on
  • An existing unsupported 7+ install is detected and replaced with the pinned version automatically, with clearer error messages when installation fails

Improved: Copilot Participant Guidance

  • The @verso participant's system prompt now covers package installation, Display() and rich outputs, and clarifies that Verso is not built on .NET Interactive

Fixed: Layout and Required-Extension Resolution

  • The missing-layout notification is deferred while required extensions are still resolving and only appears if the layout remains missing after they load
  • A default layout that was missing at startup is retried and activated once its extension becomes available
  • The pre-session extension pass stays offline but now loads an unpinned reference when an approved copy already exists on disk
  • The notebook open response carries the resolved active layout and the client seeds its first render with it, removing the visible layout flash when opening a notebook

Fixed: Mermaid Rendering in Hidden Contexts

  • Mermaid diagrams no longer collapse to a tiny square when rendered inside a hidden container (a parked presenter slide, a collapsed pane): rendering defers until the element is visible
  • Layouts can emit host-side mermaid containers for output copies, so filmstrip tiles and slide fallbacks show real rendered diagrams

Fixed: Import and Execution Reliability

  • verso import always captures cell outputs so errors are visible, tracks failures, marks the summary as an error when any cell failed, and prints non-error outputs with --show-output
  • Value-equal duplicate outputs render correctly through indexed render keys
  • Code routed by language now reaches kernels contributed by extensions and cell types, not just built-ins
  • Structural cell changes made through the RPC API (add, insert, remove, move, type change) notify connected clients, so cells added by chat tools appear without reopening the notebook
  • Blazor Server no longer hits JS interop during prerender, preventing crashes when a theme change or extension status check runs before the first interactive render

verso-v1.1.1

Choose a tag to compare

@github-actions github-actions released this 06 Jul 13:45

Release introducing custom layout extensibility with inline and isolated renderers, an in-app extension marketplace with per-notebook required extensions and persisted trust, three showcase layout extensions published as NuGet packages, a redesigned notebook toolbar with icon-only actions and export, smarter .NET runtime detection in the VS Code extension, hardened Python variable publishing, GitHub Codespaces support, and a major documentation expansion alongside a reworked extension project template with a new layout scaffold.

Thanks to @fluentfoundation and @fiVISION for sponsoring and supporting this project.

New: Custom Layout Extensibility

  • Extensions can now ship complete notebook layouts through ILayoutEngine, with ILayoutInteractionHandler for routing UI interactions and ILayoutLifecycleHandler for cell lifecycle notifications
  • Inline layouts render in the host page: the layout emits a slot per cell and the host mounts live, fully interactive cell components into the layout's own HTML
  • Isolated layouts render in a sandboxed iframe with their own renderer package, a bridge API for host communication, and a strict content security policy
  • Layouts declare capabilities (insert, delete, reorder, edit, execute) and hosts adapt: display-only layouts skip mounting the editor, ignore command-mode keys, and keep outputs visible when clicked
  • Layout styling follows the active theme through --verso-* CSS variables that cascade across the web and VS Code hosts, and themes gain coarse background and foreground tokens for layouts to consume
  • Layouts persist their state in notebook metadata and can provide scoped static assets such as stylesheets
  • The built-in layouts run on the same public API, and everything works across Blazor Server, WebAssembly, and the VS Code extension

New: Extension Marketplace

  • A marketplace pane searches NuGet and installs or uninstalls extension packages without leaving the notebook
  • Notebooks can declare required extensions, which are resolved and loaded before the notebook initializes
  • Trust prompts pin to the resolved package version and re-prompt if it drifts; trust decisions persist per notebook
  • Installed extensions that fail to load are flagged in the extension panel with a warning and the reason
  • Package extraction guards against path traversal, and extension load failures degrade to a banner instead of blocking the notebook

New: Showcase Layout Extensions

  • Three sample extensions demonstrate the layout API end to end and are published as Verso.Showcase.* NuGet packages: Image Studio (an isolated-layout image compositor), Form Studio (form-driven notebooks with charts), and Grid Studio (data grid editing)
  • Form Studio charts and Grid Studio grids bind System.Data.DataTable variables in addition to DataBlock, so SQL cell results display directly; DataTable sources are shown read-only

Improved: Notebook Toolbar

  • The toolbar was redesigned with icon-only actions, and extension toolbar actions can declare IconOnly, IsPrimary, and ConfirmationPrompt
  • Notebook export is available from the toolbar, backed by a per-host file download mechanism that also works from isolated layouts
  • Extension health is tracked and surfaced in the UI

Improved: Notebook Reliability

  • Transient outputs, such as the parameters form, no longer mark the notebook edited when they auto-render; cell types declare whether their outputs persist, and interaction handlers can signal persisted-state changes
  • Cell type and language menus render in the browser top layer using the Popover API, so they no longer paint beneath neighbouring cells
  • Publishing Python variables with self-referential or deeply nested structures no longer crashes the host; conversion guards against cycles and depth

New: .NET Runtime Detection and Install Guidance in VS Code

  • The extension resolves which dotnet to use (an explicit verso.dotnetPath setting, a previously acquired runtime, or PATH) and checks it against the host's required runtime
  • Missing or incompatible runtimes produce actionable errors, including an offer to install the runtime on demand through the .NET Install Tool
  • Host start failures are classified (dotnet not found, incompatible runtime, timeout, crash) so the guidance matches the actual problem

Improved: GitHub Codespaces Support

  • The notebook editor now works in GitHub Codespaces from Chromium-based browsers such as Chrome and Edge; a remaining Safari limitation is documented in the known issues

Improved: Extension Project Template

  • Template packaging is fixed so dotnet new install Verso.Templates yields a working, buildable template (package folder structure and the companion test project are preserved)
  • A new --includeLayout parameter scaffolds an inline layout with cell slots, interaction routing, metadata persistence, and themed CSS, along with tests
  • The sample theme and toolbar action scaffolds were refreshed for the new extension points

Improved: Documentation

  • New guides cover cell types, the command line (all six commands and --extensions usage), and embedding the engine
  • Extension documentation expands to layout authoring, inline versus isolated renderers, packaging and marketplace install paths, and security guidance
  • Architecture docs clarify engine and execution behavior, including kernel restart handling and notebook format migration

verso-v1.0.22

Choose a tag to compare

@github-actions github-actions released this 16 Jun 22:34

Release overhauling notebook keybindings with Jupyter-style command and edit modes, render-only cells (such as Markdown) that render when you leave edit mode, clearing outputs that preserves rendered cells, correct editor language for newly created cells, SQL Server batching that respects GO-delimited batches, per-cell and per-connection SQL command timeouts, smarter detection of mistyped SQL directives, normalized database table types, more robust Node.js discovery, a theme-aware error panel, and expanded documentation alongside new contributor guides.

Thanks to @fluentfoundation and @fiVISION for sponsoring and supporting this project.

Improved: Notebook Keybindings and Edit/Command Modes

  • Keybindings are now gated per editor, so Shift+Enter and Ctrl+Enter run the focused cell's editor instead of whichever cell was created last
  • Jupyter-style command-mode keys are supported: a inserts a cell above, b inserts a cell below, x deletes the selected cell, and dd deletes it as well
  • Command-mode keys stand down while a cell editor has focus, so typing a, b, x, or d edits code instead of mutating the notebook
  • Escape leaves edit mode and returns focus to the notebook, so command-mode keys work immediately afterward
  • Pressing Enter to start editing no longer leaks a newline into the editor

New: Render-Only Cells Render When You Leave Edit Mode

  • Render-only cells such as Markdown now render when you leave edit mode through Escape, editor blur, or keyboard navigation, matching Jupyter and Polyglot behavior
  • Code cells remain unexecuted when they lose focus, so only render-only cells update on blur
  • The cell preview is hidden while you are editing a render-only cell

Improved: Clearing Outputs Preserves Rendered Cells

  • Clear All Outputs no longer collapses rendered Markdown back to raw source; rendered cells stay rendered while code outputs are cleared, matching Jupyter and Polyglot semantics

Improved: Correct Language for New Cells

  • Newly created cells resolve their editor language from the registered cell type's kernel, for example SQL, and fall back to the notebook default for unknown types
  • This gives new cells the right syntax highlighting and editing behavior from the moment they are created

Improved: SQL Server Batching and Statement Splitting

  • SQL Server statements are split on GO-delimited batches rather than semicolons, so T-SQL variable scope is preserved
  • All result sets from a single command are displayed, so multiple SELECT statements each show their results
  • Records-affected is summarized only when a statement produces no result set, reducing noise

New: Per-Cell and Per-Connection SQL Command Timeouts

  • The #!sql-connect magic accepts a --command-timeout option to set a connection-wide default
  • A per-cell --timeout directive overrides the connection default, where 0 means no limit and an omitted value uses the provider default
  • The database connectivity guide documents the precedence and semantics

Improved: SQL Directive Diagnostics and Magic Handling

  • Directives mistyped with a space after the dashes, for example -- connection, are detected and a hint explains they were treated as a comment
  • Multiple suppressing magic commands in a single cell now all run, while trailing code is still prevented from executing

Improved: Database Table Type Normalization

  • INFORMATION_SCHEMA table types are normalized, for example BASE TABLE becomes TABLE, for consistent handling across database providers

Improved: Node.js Discovery

  • A VERSO_NODE_PATH environment override is honored when locating Node.js
  • Discovery enumerates candidates from the environment, PATH, and well-known locations instead of taking the first match, and avoids following shims whose target has a different name, improving reliability across version managers and environments

Improved: Theme-Aware Error Panel

  • The error panel uses VS Code theme variables for its colors so it matches light and dark themes, contributed by @marlonwq (#72)

Improved: Documentation and Contributor Guides

  • The README gains a Quick Start, a consolidated Features section, and a Command Line reference
  • A new CONTRIBUTING.md documents the contribution workflow and the Developer Certificate of Origin (DCO) sign-off, with example commands
  • A DCO check runs on pull requests to verify each commit is signed off

verso-v1.0.21

Choose a tag to compare

@github-actions github-actions released this 07 Jun 18:22

Release adding a "New Notebook" command so you can start a Verso scratchpad from the command palette without first creating a file on disk, much smarter SQL parameter handling that stops flagging false positives and now understands Oracle's :name bind syntax, better Jupyter and Polyglot import that brings per-cell SQL kernels and connection setup across cleanly, automatic Oracle provider resolution where the package and assembly names differ, import that now runs every code-bearing cell type rather than only plain code, and a new Mermaid diagrams guide.

Thanks to @fluentfoundation for sponsoring and supporting this project.

New: "New Notebook" Command and Scratch Notebooks

  • A Verso: New Notebook command palette entry opens a blank notebook instantly, without first creating and saving a .verso file in a folder
  • New notebooks are backed by a temporary scratch file so they behave like an untitled document; the first save prompts for a real location and the editor rebinds to the kept file
  • If a scratch notebook is closed without keeping it, its temporary file is cleaned up; choosing "Don't Save" on an edited scratch also removes it
  • Save and Save As always write to the location you choose rather than silently leaving the notebook in the temp directory

Improved: SQL Parameter Detection

  • Parameter detection was rewritten as a single-pass scanner that ignores anything inside comments and string literals, so those no longer produce spurious binding warnings
  • A local-scope analyzer recognizes parameters that are declared locally (for example via DECLARE) and excludes them from "unresolved parameter" warnings
  • Locally declared variables no longer spill across statement boundaries when a semicolon is omitted, so kernel and @@global references in a following statement are not mistaken for locals
  • Comprehensive unit tests cover the dialect resolver, scanner, local-scope analyzer, and the kernel's diagnostics and execution paths

New: Oracle and Dialect-Specific Parameter Syntax

  • SQL parameter handling is now dialect-aware: Oracle uses the :name bind prefix while other providers continue to use @name
  • Non-bind uses of a colon are correctly ignored, including := assignment, positional binds like :1, the :: cast operator, and trigger pseudo-records such as :new and :old
  • Oracle named binds are enabled automatically so :name parameters resolve correctly at execution time
  • Diagnostics, parameter names, and warnings all use the active dialect's prefix; documentation and tests were expanded to cover Oracle and other dialect edge cases

Improved: Jupyter and Polyglot SQL Import

  • Importing a Jupyter or Polyglot notebook now reads each cell's kernel, so per-cell languages are resolved correctly instead of assuming a single notebook-wide language
  • Polyglot SQL cells are converted to native Verso SQL cells, and #!connect lines are translated into #!sql-connect (including --create-dbcontext handling)
  • Polyglot #r "nuget:" provider references are rewritten to the matching ADO provider packages and de-duplicated so a connection's provider is added only once
  • CLI conversions now run the same import transforms as the editor, so verso convert produces the same result

Improved: Automatic Oracle Provider Resolution

  • Provider invariant names are now mapped to their NuGet package id and assembly name for cases where the two differ, most notably Oracle
  • Provider DLLs are located by assembly name while the NuGet resolver is invoked with the package id, so connecting to Oracle works without manual package wrangling
  • The database connectivity guide explains the package and assembly differences and the automatic resolution

Improved: Import Executes All Code-Bearing Cells

  • Importing a notebook now runs every cell that carries source (anything other than markdown or raw), so SQL, Python, and other non-code cells execute on import with their language preserved
  • The import summary reports the number of executed cells

New: Mermaid Diagrams Guide

  • A new guide documents native Mermaid cell support: creating Mermaid cells, the supported diagram types, @variable substitution, and theming options, including following the active Verso theme
  • The README links to the guide from the Rich Content Cells section

verso-v1.0.20

Choose a tag to compare

@github-actions github-actions released this 24 May 18:50

Release adding opt-in .ipynb round-trip save so Jupyter notebooks can be edited and saved in Verso without forcing a conversion to .verso, live host streaming and interactive Read-Host support in the PowerShell kernel, per-cell view-state honored across the verso run CLI and HTML/Markdown exporters, smarter SQL handling for BEGIN/END/CASE blocks and @@global session variables, sibling-cell run buttons disabled while a cell is executing, plus fixes for Write-Warning being emitted twice and host protocol output bleeding into cell output when a kernel captures stdout.

Thanks to @eosfor for contributing PR #48 in this release.

New: Opt-In .ipynb Round-Trip Save

  • JupyterSerializer.SerializeAsync now writes Jupyter nbformat v4 (kernelspec, list-of-strings source, execution counts, stream/error/display_data outputs) instead of throwing NotSupportedException; cell outputs round-trip when the toggle is on
  • Host notebook/save accepts an optional format parameter and resolves the matching serializer via ExtensionHost.GetSerializers(), falling back to verso for clients that do not send the field
  • VS Code adds a verso.preserveOriginalFormat setting (default off); when on and the document ends in .ipynb, the editor saves back as .ipynb instead of writing a sibling .verso
  • CLI gains a --preserve-format flag on verso repl and verso serve (default off); .save with no path honors the original .ipynb extension, while explicit .save foo.ipynb is always respected
  • ServerNotebookService selects JupyterSerializer when PreserveFormat is set and the loaded path is .ipynb
  • Verso-specific cell types collapse to Jupyter raw cells with the original type stashed in cell.metadata.verso_type; layouts, parameter definitions, and theme preferences have no Jupyter representation and do not round-trip
  • README, vscode/README.md, src/Verso.Cli/README.md, docs/architecture/engine.md, docs/architecture/front-ends.md, and docs/migration/from-jupyter.md updated to describe the opt-in and its round-trip semantics

New: PowerShell Host UI Streaming and Interactive Input

  • PowerShell kernel now hosts a custom PSHostUserInterface; Write-Host, Write-Verbose, Write-Debug, and Write-Warning stream live through the host callback as the pipeline runs rather than appearing only after the cell completes
  • Read-Host is supported through IExecutionContext.RequestInputAsync; the Blazor Server NotebookPage displays a modal dialog and switches to a password input when the kernel requests a secure read
  • Cell run and run-all handlers start execution on a background task so the Blazor Server circuit can process modal submit, cancel, and close events while a Read-Host cell is waiting for input
  • Information stream filters records tagged PSHOST that already reached the host callback, and final InformationLines are deduplicated against plain-text outputs streamed during the same execution so Write-Information -InformationAction Continue no longer renders twice
  • Verso.PowerShellHost adapter has been folded into Verso.PowerShell as an internal Verso.PowerShell.Kernel.Host namespace; architecture docs updated accordingly
  • SupportsVirtualTerminal is disabled while ANSI escape sequences are stripped, avoiding advertising VT support the host cannot honor yet
  • ServerNotebookService subscribes to Scaffold.OnCellOutputUpdated and forwards updates through OnOutputUpdated so verso serve repaints running cells as host output arrives; cancellation and password-mode flags propagate through the input flow
  • Regression coverage added for live output forwarding, Read-Host happy path, Read-Host cancellation, password flag propagation, modal submit/cancel/password rendering, and Write-Information output

New: Per-Cell View-State in CLI and Exporters

  • New ExportOptions.RespectCellViewState flag (default on) and a CellViewStateReader utility expose user-actionable per-cell view-state metadata (verso:ui.*) to non-interactive consumers
  • HTML and Markdown exporters respect layout visibility from CellVisibilityResolver, skip or hide cells based on combined layout and view-state, render truncated text previews with a footer when requested, and separate code-source rendering from outputs
  • verso run accepts a new --ignore-view-state flag to opt out of honoring per-cell view state for headless runs
  • OutputRenderer honors outputVisibility and inputCollapsed metadata with preview-line truncation; TerminalRenderer skips or partially surfaces outputs accordingly while still showing errors, and treats preview as expanded in the interactive REPL
  • CellViewStateReader is now public; exported HTML and Markdown no longer duplicate rendered markdown outputs because markdown-cell outputs are skipped in exporters
  • Tests cover hidden and preview outputs, input-collapsed markdown, custom preview line counts, and the disable-view-state path

Improved: SQL Statement Splitting

  • SqlStatementSplitter tracks BEGIN/END and CASE/END control-flow blocks so semicolons inside those blocks are no longer treated as statement separators
  • Whole-word keyword matching via helper methods (IsWordChar, IsWordBoundaryStart, MatchKeyword, IsTransactionalBegin)
  • Transactional BEGIN variants (BEGIN TRAN, TRANSACTION, DISTRIBUTED, DIALOG, CONVERSATION) are recognized and excluded from block tracking
  • Unit tests cover nested blocks, TRY/CATCH, transactional BEGINs, CASE expressions, string and identifier edge cases, lowercase keywords, and stray END handling

Improved: SQL Parameter Detection Skips @@globals

  • Parameter regex switches to a negative lookbehind ((?<!@)@(\w+)) so T-SQL and MySQL session variables like @@SPID and @@VERSION are no longer flagged as unresolved parameters
  • Tests verify that globals produce no warnings, mixed queries warn only for real parameters, and globals at the start of a query are ignored

Improved: Sibling Cell Run Buttons During Execution

  • Cell, DashboardCell, and DashboardGrid accept a new IsRunDisabled parameter; both WASM and Blazor Server NotebookPage propagate it so run buttons on non-executing cells are disabled while a cell is running
  • Run button title shows a contextual tooltip when disabled; disabled state accounts for either the cell itself executing or a global run-disabled flag
  • Unit test verifies sibling run buttons disable during execution and re-enable on completion

Improved: WebView Resource Isolation

  • blazorEditorProvider.ts drops context.extensionUri from the webview's localResourceRoots, leaving only the WASM root so the webview can no longer load arbitrary files from the extension installation

Fixed: Duplicate Write-Warning Output in PowerShell

  • Write-Warning was being emitted twice: once live via the host UI's WriteWarningLine (formatted as WARNING:) and again after pipeline completion via ps.Streams.Warning aggregation (formatted as [WARNING])
  • Removed WarningLines from InvokeResult and stopped consuming ps.Streams.Warning; the host UI's live emission is now the single source of truth, matching how Write-Verbose and Write-Debug already worked
  • Regression tests added asserting Write-Warning, Write-Error, Write-Verbose, and Write-Debug each produce exactly one output

Fixed: Host Protocol Output Captured by Kernel Console.SetOut

  • Kernels that call Console.SetOut to capture per-evaluation stdout could cause host protocol notifications to be re-emitted as cell output
  • Protocol writer now binds to Console.OpenStandardOutput() (UTF-8 without BOM) instead of Console.Out; SendLine accepts a TextWriter and uses WriteLine/Flush
  • All call sites including the HostReady notification updated to use the new writer so captured stdout cannot leak into cell output

verso-v1.0.19

Choose a tag to compare

@github-actions github-actions released this 13 May 00:32

Release adding cell execution cancellation (Stop), persisted per-cell view state with a built-in Clear Output toolbar action, image rendering in presentation and dashboard layouts, smarter NuGet resolution with transitive dependency tracking and provider auto-resolve, plus a fix that stops auto-running cells when switching to the presentation layout.

Thanks to @eosfor for contributing PRs #49, #50, and #52 in this release.

New: Cell Execution Cancellation

  • New CancelCellAsync on INotebookService; RemoteNotebookService routes via RPC and ServerNotebookService cancels through a CancellationTokenSource
  • Stop button replaces Run on cells whose language exposes cancellation; OnCancelCell is wired through Dashboard, Grid, Cell, and the WASM and Blazor Server notebook pages
  • ExecutionPipeline surfaces cancellation as a cancelled ExecutionResult; ExecutionHandler treats cancellation as a normal cancelled outcome rather than an error
  • Language DTOs carry a SupportsCancellation flag so the UI only renders Stop where it works; certain runners (the Jint JS runner) are marked non-cancellable
  • Jint JS runner timeout reduced to 15 seconds with adjusted error messages
  • CSS for the stop button; CellTests updated to assert Stop is enabled during execution, falling back to checking a disabled Run for kernels without cancellation support

New: Persisted Cell View State and Clear Output Action

  • New CellViewStateMetadata keys persist per-cell input-collapse state and output-visibility state in cell metadata
  • Host protocol round-trips metadata changes through notebook DTOs, so view state survives reload; both ServerNotebookService and RemoteNotebookService update metadata through their respective local and remote paths
  • New built-in ClearCellOutputAction toolbar action removes the selected cell's output through a host-level code path
  • Host tests cover metadata round-tripping and clear-output behavior; the Blazor.Shared test fake gains the new cell view state methods

New: Cell Visibility Metadata Renamed and Migrated

  • Metadata key renamed from verso:visibility to verso:ui.layoutVisibility; the constant lives in a new CellLayoutVisibilityMetadata type used by the property provider, resolver, remote service, and docs
  • LegacyMetadataMigrator runs at notebook open in NotebookHandler and rewrites the legacy key so older .verso files keep loading; legacy key is scheduled for removal in 1.0.22
  • Tests for the migrator added; existing tests updated to the new key

New: Image Outputs in Presentation and Dashboard Layouts

  • PresentationView.razor, DashboardCell.razor, and the HTML-producing PresentationLayout now render image/* MIME types as <img> data URIs, matching the regular cell renderer
  • Existing HTML, Markdown, plain text, and fallback MIME handling is preserved
  • Ordinal MIME matching is used for the image prefix check

Improved: NuGet Resolution and Provider Auto-Resolve

  • #!sql-connect automatically resolves a NuGet-based provider when an explicit provider is given but not already loaded; inner exception chains are walked for clearer error reporting
  • CSharpKernel always re-publishes the cumulative set of NuGet assembly paths so later magic commands can locate assemblies even after intervening non-#r cells
  • "Installed Packages" feedback now surfaces transitive dependencies alongside direct references
  • Runtime assembly loading prefers exact package-version candidates; a private isolation AssemblyLoadContext is used as a fallback when TPA or version conflicts occur; unix is added as an RID fallback on macOS
  • NuGetPackageResolver records the full transitive (id, version) result set, extracts platform-specific managed assets from runtimes/{rid}/lib/{tfm}/ (overwriting the lib/ stubs), registers package directories after extraction, and limits framework-package skipping to the core runtime meta-packages
  • Cache schema suffix bumped; tests updated to accept the new cache root layout

Improved: Extensions Directory Loading

  • New NotebookServiceOptions host-level singleton carries the optional ExtensionsDirectory path
  • ServerNotebookService centralizes loading in LoadExtensionsAsync (built-ins first, then the optional directory) and replaces repeated direct LoadBuiltIn calls
  • BlazorHostBuilder registers the options using the CLI --extensions path so the in-process ExtensionHost mirrors the other extension-loading entry points

Improved: Cell Display Properties and UI

  • CellPropertiesPanel subscribes to OnNotebookChanged (with corrected subscription scoping) and refreshes via LoadSectionsAsync when the notebook changes
  • CellDisplayPropertyProvider builds the field list incrementally, only exposes input-collapse fields for code cells (SupportsInputCollapse), and simplifies preview-style normalization and persistence
  • PropertyFieldComponent checkbox handling uses IsToggleChecked to support bool, JsonElement, and string boolean values
  • Cell.razor action button titles drop the hardcoded "Export" prefix
  • Unit test added to ensure input fields are omitted for non-code cells

Improved: Shared Panel Title Mapping

  • New Verso.Blazor.Shared.Models.PanelDisplayNames.For replaces duplicated private methods in the WASM and Components NotebookPage.razor
  • Preserves the special-case mapping ("properties" produces "CELL PROPERTIES") and falls back to ToUpperInvariant for unknown ids
  • Unit tests cover known panels, the properties special case, and the fallback path

Improved: Preview Styles for Cell Source and Outputs

  • New .verso-cell-source-preview provides a bordered, rounded container for collapsed input previews
  • New .verso-cell-output-summary styles the dashed "N output(s) hidden" summary box
  • .verso-cell-outputs--preview and .verso-cell-rendered-input--preview use -webkit-line-clamp for text and error previews and cap rendered HTML output at 160 pixels
  • Uses existing CSS variables so previews honor theming

Improved: Host stderr Log Severities

  • Lines from the host prefixed with [Verso] are treated as informational (logged at info, prefix stripped); untagged stderr is logged at warning rather than error
  • Reduces noisy error logs on routine notebook open while still surfacing likely unhandled exceptions appropriately

Fixed: Auto-Run on Presentation Layout Switch

  • Both WASM and Blazor Server NotebookPage no longer call HandleRunAll() when the active layout becomes presentation
  • Existing outputs remain visible; cells execute only on explicit Run or Run All actions
  • Presentation layout rendering is otherwise unchanged

Fixed: Trailing Newline in PlainTextRenderer

  • PlainTextRenderer strips trailing CR and LF from cell output via TrimEnd('\r', '\n') before clipping, so bordered output panels no longer end with an empty row
  • Internal blank lines authored by the cell are preserved