Use https://github.com/dotnet/interactive
Interactive widgets for IfSharp https://github.com/fsprojects/IfSharp
IfSharp.Widgets
#load "Paket.fsx"
Paket.Package [ "IfSharp.Widgets" ]
#load "packages\IfSharp.Widgets\IfSharpWidgets.fsx"
open IfSharpWidgets
let users = ["Ivan";"Boris";"Moi"]
type UserMode = {Name:string; IsSelected: CheckBoxModel}
let userModels = users |> List.map(fun name -> {Name=name; IsSelected= CheckBox("Select", true)})
userModels |> Util.Table
userModels
|> Seq.filter(fun i -> i.IsSelected.Value)
|> Seq.iter(fun i -> printfn "User %s is selected" i.Name)
CheckBox widget implemented
- Display interaction failures
- Implement TextBox widget