GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Plotly.NET/src/Plotly.NET.Interactive at dev · plotly/Plotly.NET

Expand file tree

/

Plotly.NET.Interactive

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

Plotly.NET.Interactive

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Extension.fs
Extension.fs
 
 
Formatters.fs
Formatters.fs
 
 
Plotly.NET.Interactive.fsproj
Plotly.NET.Interactive.fsproj
 
 
README.md
README.md
 
 
RELEASE_NOTES.md
RELEASE_NOTES.md
 
 
Repack.ps1
Repack.ps1
 
 
TestNotebook.dib
TestNotebook.dib
 
 
TestNotebook.ipynb
TestNotebook.ipynb
 
 
Untitled-1.html
Untitled-1.html
 
 

README.md

Outline

Plotly.NET.Interactive

Display Plotly.NET charts directly in .NET Interactive notebooks, including Polyglot Notebooks. This package registers an HTML formatter for chart values, so charts appear inline with zooming, panning, and hover information.

Moving to Verso? Use Plotly.NET.Verso, the separate adapter for Verso 1.2.3+. Keep your chart code, replace the notebook package reference, and register the Verso formatter with #!extension Plotly.NET.Verso <version>. The Verso guide covers offline charts and local packages for its initial release. This package continues to serve .NET Interactive / Polyglot Notebooks.

Installation and quick start

Run this in an F# notebook cell:

#r "nuget: Plotly.NET.Interactive, 6.0.0"

Referencing the package loads the formatter automatically and installs the core Plotly.NET dependency. In the next F# cell, create a chart and leave it as the final expression:

open Plotly.NET

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

The notebook displays the chart below the cell. Chart.show opens a separate browser window; it is unnecessary for inline output. The formatter loads plotly.js from the Plotly CDN, so the notebook browser needs access to that CDN.

Compatibility

Version 6.0.0 targets netstandard2.1 and requires a compatible .NET Interactive host. It depends on Plotly.NET >= 6.0.0 and < 7.0.0, and is built against Microsoft.DotNet.Interactive and Microsoft.DotNet.Interactive.Formatting version 1.0.0-beta.26120.1. The package does not target .NET Framework.

For the C# chart API, also reference Plotly.NET.CSharp 0.14.0. That package requires a .NET 10 C# kernel. End a C# cell with the chart value to use the same formatter.

Documentation

  • Installation and notebook examples
  • Chart examples and guides
  • API reference
  • Release notes

Licensed under the MIT License.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.