RegisterExternalEvaluator

RegisterExternalEvaluator[sys,evaluator]

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

RegisterExternalEvaluator[sys,evaluator,name]

registers the evaluator using the assigned name name.

Details

Examples

open allclose all

Basic Examples  (4)

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

Use FindExternalEvaluators to see that the NodeJS installation is registered:

Register a Python installation found at the location "/usr/bin/python3":

Use the newly registered Python:

Register a Python provisioned environment using a name:

Use the newly registered environment by referring to it by name:

Define a reference to a database using SQLite:

Register the database using RegisterExternalEvaluator:

When using ExternalEvaluate, "SQL" will use the most recently registered database:

To unregister the database, use UnregisterExternalEvaluator:

Scope  (1)

Register a Python installation using a name:

Use the newly registered environment:

The name can also be found when using FindExternalEvaluators:

Properties & Relations  (1)

Unregister all external evaluators with UnregisterExternalEvaluator:

ExternalEvaluate will attempt to provide an evaluator when you do not have registered evaluators anymore:

For the "Python" evaluator, a new installation is created under $UserBaseDirectory:

Possible Issues  (1)

Register a Python installation using a name:

Registering a different Python installation using the same name will override the previous registration:

Only the latest installation is now registered:

Neat Examples  (1)

List all current external evaluators for a system:

Unregister all external evaluators for a particular system:

All evaluators for Python are now unregistered:

Register them all again:

All of the Python installations are now registered again:

Wolfram Research (2017), RegisterExternalEvaluator, Wolfram Language function, https://reference.wolfram.com/language/ref/RegisterExternalEvaluator.html (updated 2020).

Text

Wolfram Research (2017), RegisterExternalEvaluator, Wolfram Language function, https://reference.wolfram.com/language/ref/RegisterExternalEvaluator.html (updated 2020).

CMS

Wolfram Language. 2017. "RegisterExternalEvaluator." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/RegisterExternalEvaluator.html.

APA

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

BibTeX

@misc{reference.wolfram_2023_registerexternalevaluator, author="Wolfram Research", title="{RegisterExternalEvaluator}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/RegisterExternalEvaluator.html}", note=[Accessed: 01-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_registerexternalevaluator, organization={Wolfram Research}, title={RegisterExternalEvaluator}, year={2020}, url={https://reference.wolfram.com/language/ref/RegisterExternalEvaluator.html}, note=[Accessed: 01-March-2024 ]}