Evaluate Wolfram Language
evaluate_wlEvaluate Wolfram Language with the very engine a wiki page's ```wl cells are evaluated by (mathics-core-rust's wl-wasm), on the server and now — to check an expression before putting it on a page, or what a page's cells will say. Pass 'code' for one cell, or 'cells' for several evaluated in one session and in order, as the page's «Evaluate all» does (a definition in one is seen by the next). The whole call has 10 seconds: the cell running when they are out is 'timeout', one that runs out of memory or stack is 'limit', and the cells after either are 'skipped'. Answers each cell's outputs — results with their Out[n], messages and prints, each as text, InputForm ('input') and TeX ('tex', 'latex') — and the engine, its commit and the seconds it took. Cells this engine already evaluated for a page of the company are answered from that output ('saved': true). Nothing is kept. Only where the company has the wiki.wl switch; at most 10 evaluations a minute per person.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | One cell of Wolfram Language, e.g. "Integrate[x^2 Sin[x], x]" or "Factor[x^4 - 1]". | |
| cells | No | Several cells, evaluated in one session and in order — instead of 'code'. |