Skip to content

Commit 940bbd2

Browse files
committed
Switched preview output
1 parent 49ccc3a commit 940bbd2

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

evaluation_function.wl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ processPreview[jsonData_] := Module[{result, requestData, response},
2727

2828
result = PreviewFunction[response];
2929
Print["Result: ", result];
30+
3031
<| "command" -> "preview",
31-
"preview" ->
32-
<|
33-
"latex" -> result["latexString"],
34-
"sympy" -> result["sympyString"]
35-
|>
32+
"result" ->
33+
<|"preview" -> result|>
3634
|>
3735
]
3836

preview.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@
3636
wolframString = ToString[parsedResponse, InputForm];
3737

3838
<|
39-
"parsedResponse" -> ToString[parsedResponse],
40-
"latexString" -> latexString,
41-
"sympyString" -> wolframString
39+
"latex" -> latexString,
40+
"sympy" -> wolframString
4241
|>
4342
];
4443

0 commit comments

Comments
 (0)