File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 1313 "commands" : [
1414 " fsharp-analyzers"
1515 ]
16+ },
17+ "dotnet-repl" : {
18+ "version" : " 0.1.208" ,
19+ "commands" : [
20+ " dotnet-repl"
21+ ]
1622 }
1723 }
1824}
Original file line number Diff line number Diff line change @@ -348,7 +348,23 @@ type internal DocContent
348348 outputFileFullPath
349349 )))
350350 elif isPynb then
351- printfn " preparing %s --> %s " inputFileFullPath outputFileRelativeToRoot
351+ printfn " preparing %s --> %s " inputFileFullPath outputFileRelativeToRoot
352+
353+ let evaluateNotebook ipynbFile =
354+ let psi =
355+ ProcessStartInfo( fileName = " dotnet" ,
356+ arguments = $" repl --run {ipynbFile} --default-kernel fsharp --exit-after-run --output-path {ipynbFile}" ,
357+ UseShellExecute = false ,
358+ CreateNoWindow = true )
359+
360+ let p = Process.Start( psi)
361+ p.WaitForExit()
362+
363+ if evaluate then
364+ printfn $" evaluating {inputFileFullPath} with dotnet-repl"
365+ evaluateNotebook inputFileFullPath
366+
367+
352368 let model =
353369 Literate.ParseAndTransformPynbFile(
354370 inputFileFullPath,
You can’t perform that action at this time.
0 commit comments