File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ To use locally in Jupyter, first install Jupyter and then:
36
36
37
37
When using .NET Interactive it is best to completely turn off automatic HTML displays of outputs:
38
38
39
- Formatter.SetPreferredMimeTypeFor (typeof<obj>, "text/plain")
39
+ Formatter.SetPreferredMimeTypesFor (typeof<obj>, "text/plain")
40
40
Formatter.Register(fun x writer -> fprintfn writer "%120A" x )
41
41
42
42
You can also use DiffSharp from a script or an application. Here are some example scripts with appropriate package references:
Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ DiffSharp.dsharp.seed(123)
15
15
(*** condition: ipynb ***)
16
16
#if IPYNB
17
17
// Google Colab only: uncomment and run the following to install dotnet and the F# kernel
18
- // !bash <(curl -Ls https://raw.githubusercontent.com/gbaydin/scripts/main/colab_dotnet5 .sh)
18
+ // !bash <(curl -Ls https://raw.githubusercontent.com/gbaydin/scripts/main/colab_dotnet6 .sh)
19
19
#endif // IPYNB
20
20
(*** condition: ipynb ***)
21
21
#if IPYNB
22
22
// Import DiffSharp package
23
23
#r " nuget: DiffSharp-lite,{{fsdocs-package-version}}"
24
24
25
25
// Set dotnet interactive formatter to plaintext
26
- Formatter.SetPreferredMimeTypeFor ( typeof< obj>, " text/plain" )
26
+ Formatter.SetPreferredMimeTypesFor ( typeof< obj>, " text/plain" )
27
27
Formatter.Register( fun ( x : obj ) ( writer : TextWriter ) -> fprintfn writer " %120A " x )
28
28
#endif // IPYNB
29
29
Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ DiffSharp.dsharp.seed(123)
15
15
(*** condition: ipynb ***)
16
16
#if IPYNB
17
17
// Google Colab only: uncomment and run the following to install dotnet and the F# kernel
18
- // !bash <(curl -Ls https://raw.githubusercontent.com/gbaydin/scripts/main/colab_dotnet5 .sh)
18
+ // !bash <(curl -Ls https://raw.githubusercontent.com/gbaydin/scripts/main/colab_dotnet6 .sh)
19
19
#endif // IPYNB
20
20
(*** condition: ipynb ***)
21
21
#if IPYNB
22
22
// Import DiffSharp package
23
23
#r " nuget: DiffSharp-lite,{{fsdocs-package-version}}"
24
24
25
25
// Set dotnet interactive formatter to plaintext
26
- Formatter.SetPreferredMimeTypeFor ( typeof< obj>, " text/plain" )
26
+ Formatter.SetPreferredMimeTypesFor ( typeof< obj>, " text/plain" )
27
27
Formatter.Register( fun ( x : obj ) ( writer : TextWriter ) -> fprintfn writer " %120A " x )
28
28
#endif // IPYNB
29
29
Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ DiffSharp.dsharp.seed(123)
15
15
(*** condition: ipynb ***)
16
16
#if IPYNB
17
17
// Google Colab only: uncomment and run the following to install dotnet and the F# kernel
18
- // !bash <(curl -Ls https://raw.githubusercontent.com/gbaydin/scripts/main/colab_dotnet5 .sh)
18
+ // !bash <(curl -Ls https://raw.githubusercontent.com/gbaydin/scripts/main/colab_dotnet6 .sh)
19
19
#endif // IPYNB
20
20
(*** condition: ipynb ***)
21
21
#if IPYNB
22
22
// Import DiffSharp package
23
23
#r " nuget: DiffSharp-lite,{{fsdocs-package-version}}"
24
24
25
25
// Set dotnet interactive formatter to plaintext
26
- Formatter.SetPreferredMimeTypeFor ( typeof< obj>, " text/plain" )
26
+ Formatter.SetPreferredMimeTypesFor ( typeof< obj>, " text/plain" )
27
27
Formatter.Register( fun ( x : obj ) ( writer : TextWriter ) -> fprintfn writer " %120A " x )
28
28
#endif // IPYNB
29
29
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ open DiffSharp.Util
18
18
(*** condition: ipynb ***)
19
19
#if IPYNB
20
20
// Google Colab only: uncomment and run the following to install dotnet and the F# kernel
21
- // !bash <(curl -Ls https://raw.githubusercontent.com/gbaydin/scripts/main/colab_dotnet5 .sh)
21
+ // !bash <(curl -Ls https://raw.githubusercontent.com/gbaydin/scripts/main/colab_dotnet6 .sh)
22
22
#endif // IPYNB
23
23
(*** condition: ipynb ***)
24
24
#if IPYNB
@@ -27,7 +27,7 @@ open DiffSharp.Util
27
27
#r " nuget: SixLabors.ImageSharp,1.0.1"
28
28
29
29
// Set dotnet interactive formatter to plaintext
30
- Formatter.SetPreferredMimeTypeFor ( typeof< obj>, " text/plain" )
30
+ Formatter.SetPreferredMimeTypesFor ( typeof< obj>, " text/plain" )
31
31
Formatter.Register( fun ( x : obj ) ( writer : TextWriter ) -> fprintfn writer " %120A " x )
32
32
#endif // IPYNB
33
33
Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ DiffSharp.dsharp.seed(123)
15
15
(*** condition: ipynb ***)
16
16
#if IPYNB
17
17
// Google Colab only: uncomment and run the following to install dotnet and the F# kernel
18
- // !bash <(curl -Ls https://raw.githubusercontent.com/gbaydin/scripts/main/colab_dotnet5 .sh)
18
+ // !bash <(curl -Ls https://raw.githubusercontent.com/gbaydin/scripts/main/colab_dotnet6 .sh)
19
19
#endif // IPYNB
20
20
(*** condition: ipynb ***)
21
21
#if IPYNB
22
22
// Import DiffSharp package
23
23
#r " nuget: DiffSharp-lite,{{fsdocs-package-version}}"
24
24
25
25
// Set dotnet interactive formatter to plaintext
26
- Formatter.SetPreferredMimeTypeFor ( typeof< obj>, " text/plain" )
26
+ Formatter.SetPreferredMimeTypesFor ( typeof< obj>, " text/plain" )
27
27
Formatter.Register( fun ( x : obj ) ( writer : TextWriter ) -> fprintfn writer " %120A " x )
28
28
#endif // IPYNB
29
29
You can’t perform that action at this time.
0 commit comments