Plotly.NET.Verso 1.0.0

dotnet add package Plotly.NET.Verso --version 1.0.0
                    
NuGet\Install-Package Plotly.NET.Verso -Version 1.0.0
                    
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="Plotly.NET.Verso" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Plotly.NET.Verso" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Plotly.NET.Verso" />
                    
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 Plotly.NET.Verso --version 1.0.0
                    
#r "nuget: Plotly.NET.Verso, 1.0.0"
                    
#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 Plotly.NET.Verso@1.0.0
                    
#: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=Plotly.NET.Verso&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Plotly.NET.Verso&version=1.0.0
                    
Install as a Cake Tool

Plotly.NET.Verso

Display Plotly.NET charts inline in Verso notebooks, with interactive zooming, panning and hover information.

Compatibility

Plotly.NET.Verso 1.0.0 requires Verso 1.2.3 or later in the compatible 1.x host line and Plotly.NET >= 6.0.0 and < 7.0.0. The extension targets net8.0 and also runs on newer compatible .NET runtimes. It uses Verso's supported IDataFormatter extension contract and isolated assembly loading.

Before the initial release is published, use the local-package workflow below rather than assuming version 1.0.0 is available on NuGet.org.

Installation and quick start

In an F# notebook, reference the package in one cell:

#r "nuget: Plotly.NET.Verso, 1.0.0"

Register its formatter in the next cell:

#!extension Plotly.NET.Verso 1.0.0

Then leave a chart as a cell's final expression:

open Plotly.NET

Chart.Point(x = [0; 1; 2; 3], y = [1; 4; 9; 16])
|> Chart.withTitle "Squares"

Verso may ask you to approve the extension package. Referencing it with #r alone does not register the formatter. Installing and enabling it through Verso's Extensions panel is another supported registration path.

Online and offline charts

The default loads the Plotly CDN version bundled with the chart's Plotly.NET assembly. Loading is asynchronous and shared between outputs in the same page. For offline chart rendering, set Full:

Chart.Point(x = [0; 1; 2], y = [1; 4; 9])
|> Chart.withDisplayOptions (
    DisplayOptions.init(PlotlyJSReference = PlotlyJSReference.Full)
)

Each embedded output includes several megabytes of Plotly JavaScript so that saved charts can render without downloading it. Verso itself and any additional resources explicitly added to the chart can have their own network requirements.

Reference option Verso behavior
Default / absent Load the CDN for the chart's Plotly.NET version
CDN url Use the supplied JavaScript URL
Full Embed the originating Plotly.NET assembly's JavaScript
NoReference Use already loaded Plotly or a pending extension load; never start a download
Require Display a migration message: use CDN or Full

Plotly.NET.Verso.Formatters.toVersoHTML chart returns the notebook HTML fragment. toVersoHTMLOffline chart forces embedded Plotly and returns a complete HTML document suitable for saving to a file. Both retain chart data, layout, config and descriptions without changing the original chart.

Moving from Polyglot Notebooks

Use Plotly.NET.Interactive with .NET Interactive / Polyglot Notebooks and Plotly.NET.Verso with Verso. Existing chart-construction code can remain the same. Replace the notebook package reference and add the Verso registration step shown above. Replace explicit Require display options with CDN or Full.

The packages remain separate so each host loads only its own adapter dependencies. Installing Plotly.NET.Interactive does not activate the Verso formatter.

Local development and troubleshooting

From the repository root:

./build.cmd RunVersoTestsFast
./build.cmd RunVersoBrowserTestsFast
./build.cmd PackVersoIntegrationPackages
./build.cmd RunVersoIntegrationTests

Use ./build.sh on Linux. The real-host tests use isolated caches; these targets never delete your global NuGet cache. See the test guide for browser provisioning, artifacts and the VS Code smoke procedure.

If a chart appears as text, check that the extension is registered and enabled and that the host is at least 1.2.3. For download failures, inspect the output error and check the configured URL or use Full; rerunning the cell retries a failed load. Do not install RequireJS or override Monaco's define function.

Licensed under the MIT License.

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 was computed.  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.0.0 102 11/12/2026

- Initial release of Plotly.NET.Verso
- Renders GenericChart objects as interactive Plotly charts in Verso notebooks
- Supports online (CDN) and offline (embedded) rendering modes
- Requires Verso 1.2.3; updates Abstractions and Testing to 1.2.3
- Await Plotly loading, share concurrent loads, and report failures with retry on rerun
- Honor CDN, Full and NoReference display options; report unsupported RequireJS mode
- Format charts across isolated notebook/extension assembly contexts
- Respect formatter MIME requests and cancellation; preserve chart values and descriptions
- Add formatter, Chromium and packaged CLI/web-host tests with isolated local caches