EvaluatePacket

EvaluatePacket[expr]

is a WSTP packet requesting evaluation of expr.

Details

  • expr is not evaluated by a complete pass through the Wolfram System's main loop.
  • The kernel always completes the evaluation by returning the result in a single ReturnPacket.
  • The notebook front end uses EvaluatePacket to request kernel computation for controls and dynamic values.
  • When communicating with the notebook front end, the kernel may require the front end to perform one or more computations in order to fully evaluate expr. If this happens, the kernel will send a CallPacket to the front end, and the front end will reply with a single ReturnPacket.
  • The front end and kernel may nest EvaluatePacket and CallPacket expressions arbitrarily deep.

Examples

Basic Examples  (1)

Launch a subsidiary Wolfram Language kernel process:

Read the first packet:

Send an EvaluatePacket packet with the expression 10! without evaluating it:

Read the result:

Close the link:

Wolfram Research (1996), EvaluatePacket, Wolfram Language function, https://reference.wolfram.com/language/ref/EvaluatePacket.html.

Text

Wolfram Research (1996), EvaluatePacket, Wolfram Language function, https://reference.wolfram.com/language/ref/EvaluatePacket.html.

CMS

Wolfram Language. 1996. "EvaluatePacket." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EvaluatePacket.html.

APA

Wolfram Language. (1996). EvaluatePacket. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EvaluatePacket.html

BibTeX

@misc{reference.wolfram_2024_evaluatepacket, author="Wolfram Research", title="{EvaluatePacket}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/EvaluatePacket.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_evaluatepacket, organization={Wolfram Research}, title={EvaluatePacket}, year={1996}, url={https://reference.wolfram.com/language/ref/EvaluatePacket.html}, note=[Accessed: 22-December-2024 ]}