EnterExpressionPacket

EnterExpressionPacket[expr]
is a WSTP packet that requests the evaluation of expr.

DetailsDetails

  • expr is a Wolfram Language expression, not a string.
  • expr is evaluated by a complete pass through the Wolfram System main loop.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Launch a subsidiary Wolfram Language kernel process:

In[1]:=
Click for copyable input
Out[1]=

Read the first packet:

In[2]:=
Click for copyable input
Out[2]=

Write an EnterExpressionPacket packet to the link without evaluating it:

In[3]:=
Click for copyable input

Read the resulting packets:

In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=

Close the link:

In[6]:=
Click for copyable input
Introduced in 1996
(3.0)