From 7522c71207070b686d97ab1164e6ed2cdad12e96 Mon Sep 17 00:00:00 2001 From: cc-wr <47033353+cc-wr@users.noreply.github.com> Date: Sun, 15 Sep 2019 06:47:30 -0400 Subject: [PATCH] Remove second level of Out[] labels for multiple results --- .../Resources/RequestHandlers.wl | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/WolframLanguageForJupyter/Resources/RequestHandlers.wl b/WolframLanguageForJupyter/Resources/RequestHandlers.wl index 8bdd7e7..f65e0ac 100644 --- a/WolframLanguageForJupyter/Resources/RequestHandlers.wl +++ b/WolframLanguageForJupyter/Resources/RequestHandlers.wl @@ -196,9 +196,8 @@ If[ "execution_count" -> First[totalResult["EvaluationResultOutputLineIndices"]], (* generate HTML of results and messages *) "data" -> - {"text/html" -> - (* if there are multiple results, output as Out[1/n]:, Out[2/n]:, ..., Out[n/n]: *) - (* otherwise, just display the single error message and/or single result *) + {"text/html" -> + (* output the results in a grid *) If[ Length[totalResult["EvaluationResult"]] > 1, StringJoin[ @@ -206,7 +205,7 @@ If[ " @@ -218,20 +217,11 @@ If[ (* display the output lines *) Table[ { - (* start the left grid item *) - "