File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
src/Plotly.NET.Interactive Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
namespace Plotly.NET.Interactive
2
2
3
+ open System
3
4
open System.Threading .Tasks
4
5
open Microsoft.DotNet .Interactive
5
6
open Microsoft.DotNet .Interactive .Formatting
@@ -9,19 +10,20 @@ type FormatterKernelExtension() =
9
10
10
11
let registerFormatter () =
11
12
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)
17
19
18
20
interface IKernelExtension with
19
21
member _.OnLoadAsync _ =
20
22
registerFormatter ()
21
23
22
24
if isNull KernelInvocationContext.Current |> not then
23
25
let message =
24
- " Added Kernel Extension including formatters for GenericChart "
26
+ " Added Kernel Extension including formatters for Plotly.NET charts. "
25
27
26
28
KernelInvocationContext.Current.Display( message, " text/markdown" )
27
29
|> ignore
Original file line number Diff line number Diff line change 47
47
</ItemGroup >
48
48
49
49
<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 " />
52
52
</ItemGroup >
53
53
54
54
</Project >
You can’t perform that action at this time.
0 commit comments