-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
default output to .ipynb when redirected in --exit-after-run mode
- Loading branch information
1 parent
d94b1ad
commit 07cfd0d
Showing
13 changed files
with
577 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,216 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": { | ||
"dotnet_interactive": { | ||
"language": "csharp" | ||
} | ||
}, | ||
"source": [ | ||
"Console.Out.WriteLine(\"output\");" | ||
], | ||
"outputs": [ | ||
{ | ||
"output_type": "execute_result", | ||
"data": { | ||
"application/vnd.code.notebook.stdout": "output\r\n" | ||
}, | ||
"execution_count": 1, | ||
"metadata": {} | ||
} | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": { | ||
"dotnet_interactive": { | ||
"language": "csharp" | ||
} | ||
}, | ||
"source": [ | ||
"Console.Error.WriteLine(\"error\");" | ||
], | ||
"outputs": [ | ||
{ | ||
"output_type": "execute_result", | ||
"data": { | ||
"application/vnd.code.notebook.stderr": "error\r\n" | ||
}, | ||
"execution_count": 1, | ||
"metadata": {} | ||
} | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": { | ||
"dotnet_interactive": { | ||
"language": "csharp" | ||
} | ||
}, | ||
"source": [ | ||
"throw new Exception(\"oops!\");" | ||
], | ||
"outputs": [ | ||
{ | ||
"output_type": "error", | ||
"ename": "Error", | ||
"evalue": "{\n\t\"name\": \"Error\",\n\t\"message\": \"System.Exception: oops!\\r\\n at Submission#11.<<Initialize>>d__0.MoveNext()\\r\\n--- End of stack trace from previous location ---\\r\\n at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult](ImmutableArray`1 precedingExecutors, Func`2 currentExecutor, StrongBox`1 exceptionHolderOpt, Func`2 catchExceptionOpt, CancellationToken cancellationToken)\"\n}", | ||
"traceback": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": { | ||
"dotnet_interactive": { | ||
"language": "csharp" | ||
} | ||
}, | ||
"source": [ | ||
"\"A return value\"" | ||
], | ||
"outputs": [ | ||
{ | ||
"output_type": "execute_result", | ||
"data": { | ||
"text/plain": "A return value" | ||
}, | ||
"execution_count": 1, | ||
"metadata": {} | ||
} | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": { | ||
"dotnet_interactive": { | ||
"language": "csharp" | ||
} | ||
}, | ||
"source": [ | ||
"\"An HTML display value\".Display(\"text/html\");" | ||
], | ||
"outputs": [ | ||
{ | ||
"output_type": "execute_result", | ||
"data": { | ||
"text/html": "<div class=\"dni-plaintext\">An HTML display value</div>" | ||
}, | ||
"execution_count": 1, | ||
"metadata": {} | ||
} | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": { | ||
"dotnet_interactive": { | ||
"language": "csharp" | ||
} | ||
}, | ||
"source": [ | ||
"\"A plaintext display value\".Display(\"text/plain\");" | ||
], | ||
"outputs": [ | ||
{ | ||
"output_type": "execute_result", | ||
"data": { | ||
"text/plain": "A plaintext display value" | ||
}, | ||
"execution_count": 1, | ||
"metadata": {} | ||
} | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": { | ||
"dotnet_interactive": { | ||
"language": "csharp" | ||
} | ||
}, | ||
"source": [ | ||
"\"A plaintext display value (in a multi-output cell)\".Display(\"text/plain\");\n", | ||
"\"An HTML display value (in a multi-output cell)\".Display(\"text/html\");" | ||
], | ||
"outputs": [ | ||
{ | ||
"output_type": "execute_result", | ||
"data": { | ||
"text/plain": "A plaintext display value (in a multi-output cell)" | ||
}, | ||
"execution_count": 1, | ||
"metadata": {} | ||
}, | ||
{ | ||
"output_type": "execute_result", | ||
"data": { | ||
"text/html": "<div class=\"dni-plaintext\">An HTML display value (in a multi-output cell)</div>" | ||
}, | ||
"execution_count": 1, | ||
"metadata": {} | ||
} | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": { | ||
"dotnet_interactive": { | ||
"language": "pwsh" | ||
} | ||
}, | ||
"source": [ | ||
"'A Powershell output' | Out-String" | ||
], | ||
"outputs": [ | ||
{ | ||
"output_type": "execute_result", | ||
"data": { | ||
"application/vnd.code.notebook.stdout": "A Powershell output\r\n\r\n" | ||
}, | ||
"execution_count": 1, | ||
"metadata": {} | ||
} | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": { | ||
"dotnet_interactive": { | ||
"language": "csharp" | ||
} | ||
}, | ||
"source": [ | ||
"" | ||
], | ||
"outputs": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": ".NET (C#)", | ||
"language": "C#", | ||
"name": ".net-csharp" | ||
}, | ||
"language_info": { | ||
"file_extension": ".cs", | ||
"mimetype": "text/x-csharp", | ||
"name": "C#", | ||
"pygments_lexer": "csharp", | ||
"version": "8.0" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 4 | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.