RegisterExternalEvaluator

RegisterExternalEvaluator[sys,exec]

registers the executable exec for use as an external evaluator with the language or system sys.

Details

  • Registered evaluators can be identified using FindExternalEvaluators.
  • exec should be an executable file that can be used to execute code for the system sys.
  • exec can be specified as File[].
  • In RegisterExternalEvaluator[sys,exec], possible choices of sys include:
  • "Python"Python
    "Python-NumPy"Python with NumPy loaded
    "Python-PIL"Python with the Python Image Library (PIL) loaded
    "NodeJS"JavaScript running through Node.js
    "WebDriver-Chrome"Chrome web browser
    "WebDriver-Chrome-Headless"Chrome web browser running headless
    "WebDriver-Firefox"Firefox web browser
    "WebDriver-Firefox-Headless"Firefox web browser running headless
    ExternalSessionObject[]session object started by StartExternalSession
  • External evaluator registrations persist between Wolfram Language sessions.
  • RegisterExternalEvaluator returns a UUID that references this evaluator inside the dataset returned by FindExternalEvaluators.
  • Evaluators registered with RegisterExternalEvaluator can be unregistered with UnregisterExternalEvaluator.

Examples

open allclose all

Basic Examples  (2)

Register a new "NodeJS" installation at the location "/usr/local/bin/node8":

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

Register a Python installation at the location "/usr/local/bin/python271":

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

Properties & Relations  (1)

Neat Examples  (1)

See Also

UnregisterExternalEvaluator  ExternalEvaluate  StartExternalSession  FindExternalEvaluators

Related Workflows

Introduced in 2017
(11.2)