ExternalSessions

ExternalSessions[]

gives the list of currently active external evaluator sessions.

ExternalSessions[sys]

gives the list of sessions associated with the system sys.

Details

Examples

open allclose all

Basic Examples  (3)

Start a session and see it listed with ExternalSessions:

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

Delete the session object:

In[2]:=
Click for copyable input

Now the session is not present in ExternalSessions:

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

Start sessions and list them independently by specifying the system:

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

ExternalSessions[sys] only shows sessions for that system:

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

Delete the session objects:

In[4]:=
Click for copyable input

Start some sessions and delete all of them with DeleteObject and ExternalSessions:

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

DeleteObject works with a list of more than one ExternalSessionObject:

In[2]:=
Click for copyable input

Scope  (1)

Neat Examples  (1)

See Also

StartExternalSession  FindExternalEvaluators  Processes

Tutorials

Introduced in 2017
(11.2)