Skip to content

Commit f1d8dc6

Browse files
committed
Update dotnet interactive dependencies
1 parent 6e2112f commit f1d8dc6

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/Plotly.NET.Interactive/Extension.fs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
namespace Plotly.NET.Interactive
22

3+
open System
34
open System.Threading.Tasks
45
open Microsoft.DotNet.Interactive
56
open Microsoft.DotNet.Interactive.Formatting
@@ -9,19 +10,20 @@ type FormatterKernelExtension() =
910

1011
let registerFormatter () =
1112
Formatter.Register<GenericChart>
12-
((fun chart writer ->
13-
let html = toChartHTML chart
14-
15-
writer.Write(html)),
16-
HtmlFormatter.MimeType)
13+
(
14+
Action<_,_>(fun chart (writer: IO.TextWriter) ->
15+
let html = toChartHTML chart
16+
writer.Write(html)
17+
),
18+
HtmlFormatter.MimeType)
1719

1820
interface IKernelExtension with
1921
member _.OnLoadAsync _ =
2022
registerFormatter ()
2123

2224
if isNull KernelInvocationContext.Current |> not then
2325
let message =
24-
"Added Kernel Extension including formatters for GenericChart"
26+
"Added Kernel Extension including formatters for Plotly.NET charts."
2527

2628
KernelInvocationContext.Current.Display(message, "text/markdown")
2729
|> ignore

src/Plotly.NET.Interactive/Plotly.NET.Interactive.fsproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
</ItemGroup>
4848

4949
<ItemGroup>
50-
<PackageReference Include="Microsoft.DotNet.Interactive" Version="1.0.0-beta.21176.4" />
51-
<PackageReference Include="Microsoft.DotNet.Interactive.Formatting" Version="1.0.0-beta.21176.4" />
50+
<PackageReference Include="Microsoft.DotNet.Interactive" Version="1.0.0-beta.21330.2" />
51+
<PackageReference Include="Microsoft.DotNet.Interactive.Formatting" Version="1.0.0-beta.21330.2" />
5252
</ItemGroup>
5353

5454
</Project>

0 commit comments

Comments
 (0)