8000 fix interactive · DiffSharp/DiffSharp@3bb1071 · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit 3bb1071

Browse files
committed
fix interactive
1 parent 1c0ee58 commit 3bb1071

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To use locally in Jupyter, first install Jupyter and then:
3636

3737
When using .NET Interactive it is best to completely turn off automatic HTML displays of outputs:
3838

39-
Formatter.SetPreferredMimeTypeFor(typeof<obj>, "text/plain")
39+
Formatter.SetPreferredMimeTypesFor(typeof<obj>, "text/plain")
4040
Formatter.Register(fun x writer -> fprintfn writer "%120A" x )
4141

4242
You can also use DiffSharp from a script or an application. Here are some example scripts with appropriate package references:

docs/extensions.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ DiffSharp.dsharp.seed(123)
1515
(*** condition: ipynb ***)
1616
#if IPYNB
1717
// 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)
1919
#endif // IPYNB
2020
(*** condition: ipynb ***)
2121
#if IPYNB
2222
// Import DiffSharp package
2323
#r "nuget: DiffSharp-lite,{{fsdocs-package-version}}"
2424

2525
// Set dotnet interactive formatter to plaintext
26-
Formatter.SetPreferredMimeTypeFor(typeof<obj>, "text/plain")
26+
Formatter.SetPreferredMimeTypesFor(typeof<obj>, "text/plain")
2727
Formatter.Register(fun (x:obj) (writer: TextWriter) -> fprintfn writer "%120A" x )
2828
#endif // IPYNB
2929

docs/index.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ DiffSharp.dsharp.seed(123)
1515
(*** condition: ipynb ***)
1616
#if IPYNB
1717
// 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)
1919
#endif // IPYNB
2020
(*** condition: ipynb ***)
2121
#if IPYNB
2222
// Import DiffSharp package
2323
#r "nuget: DiffSharp-lite,{{fsdocs-package-version}}"
2424

2525
// Set dotnet interactive formatter to plaintext
26-
Formatter.SetPreferredMimeTypeFor(typeof<obj>, "text/plain")
26+
Formatter.SetPreferredMimeTypesFor(typeof<obj>, "text/plain")
2727
Formatter.Register(fun (x:obj) (writer: TextWriter) -> fprintfn writer "%120A" x )
2828
#endif // IPYNB
2929

docs/install.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ DiffSharp.dsharp.seed(123)
1515
(*** condition: ipynb ***)
1616
#if IPYNB
1717
// 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)
1919
#endif // IPYNB
2020
(*** condition: ipynb ***)
2121
#if IPYNB
2222
// Import DiffSharp package
2323
#r "nuget: DiffSharp-lite,{{fsdocs-package-version}}"
2424

2525
// Set dotnet interactive formatter to plaintext
26-
Formatter.SetPreferredMimeTypeFor(typeof<obj>, "text/plain")
26+
Formatter.SetPreferredMimeTypesFor(typeof<obj>, "text/plain")
2727
Formatter.Register(fun (x:obj) (writer: TextWriter) -> fprintfn writer "%120A" x )
2828
#endif // IPYNB
2929

docs/quickstart.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ open DiffSharp.Util
1818
(*** condition: ipynb ***)
1919
#if IPYNB
2020
// 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)
2222
#endif // IPYNB
2323
(*** condition: ipynb ***)
2424
#if IPYNB
@@ -27,7 +27,7 @@ open DiffSharp.Util
2727
#r "nuget: SixLabors.ImageSharp,1.0.1"
2828

2929
// Set dotnet interactive formatter to plaintext
30-
Formatter.SetPreferredMimeTypeFor(typeof<obj>, "text/plain")
30+
Formatter.SetPreferredMimeTypesFor(typeof<obj>, "text/plain")
3131
Formatter.Register(fun (x:obj) (writer: TextWriter) -> fprintfn writer "%120A" x )
3232
#endif // IPYNB
3333

docs/tensors.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ DiffSharp.dsharp.seed(123)
1515
(*** condition: ipynb ***)
1616
#if IPYNB
1717
// 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)
1919
#endif // IPYNB
2020
(*** condition: ipynb ***)
2121
#if IPYNB
2222
// Import DiffSharp package
2323
#r "nuget: DiffSharp-lite,{{fsdocs-package-version}}"
2424

2525
// Set dotnet interactive formatter to plaintext
26-
Formatter.SetPreferredMimeTypeFor(typeof<obj>, "text/plain")
26+
Formatter.SetPreferredMimeTypesFor(typeof<obj>, "text/plain")
2727
Formatter.Register(fun (x:obj) (writer: TextWriter) -> fprintfn writer "%120A" x )
2828
#endif // IPYNB
2929

0 commit comments

Comments
 (0)
0