F# Notebooks are written using the F# notebook programming model, a variation on the F# scripting programming model used for .fsx
scripts and familiar to many F# users.
This article documents the ways that this programming model differs from normal F# scripting.
The following assemblies or packages are referenced by default:
.NETStandard.Library
FSharp.Core
Microsoft.AspNetCore.Html.Abstractions
Microsoft.DotNet.Interactive
Microsoft.DotNet.Interactive.Formatting
Microsoft.DotNet.Interactive.FSharp
The following namespaces are opened by default:
FSharp.Core
FSharp.Control
FSharp.Collections
System
System.IO
System.Text
Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
Note that the final four are extra namespaces available by default in the F# notebook programming model that are not available by default in the F# scripting model.
See Referencing packages for how package references differ.
See Displaying outputs.
See Formatting outputs.
fsi
object and formatting outputs¶Currently the fsi
object is not available by default and neither fsi.AddPrinter
nor fsi.AddHtmlPrinter
are supported. See Formatting outputs
for how to register plain text and HTML formatters.