EvaluatePacket
✖
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)Summary of the most common use cases
Launch a subsidiary Wolfram Language kernel process:
In[1]:=1
✖
https://wolfram.com/xid/0d6gch5j3a-ff4mb3
Out[1]=1
In[2]:=2
✖
https://wolfram.com/xid/0d6gch5j3a-78u29f
Out[2]=2
Send an EvaluatePacket packet with the expression 10! without evaluating it:
In[3]:=3
✖
https://wolfram.com/xid/0d6gch5j3a-5lqgfk
In[4]:=4
✖
https://wolfram.com/xid/0d6gch5j3a-q6ty6l
Out[4]=4
In[5]:=5
✖
https://wolfram.com/xid/0d6gch5j3a-xdtugq
Wolfram Research (1996), EvaluatePacket, Wolfram Language function, https://reference.wolfram.com/language/ref/EvaluatePacket.html.
✖
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.
✖
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.
✖
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
✖
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: 11-January-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2024_evaluatepacket, organization={Wolfram Research}, title={EvaluatePacket}, year={1996}, url={https://reference.wolfram.com/language/ref/EvaluatePacket.html}, note=[Accessed: 11-January-2025
]}