LocalEvaluate
✖
LocalEvaluate
gives the result of evaluating expr using your current default local Wolfram Language kernel.
gives a list of the results of evaluating expr using each of the kernels keri.
Details and Options


- LocalEvaluate has attribute HoldAll.
- LocalEvaluate[expr] uses the kernel given by $DefaultLocalKernel
- LocalEvaluate has the following option:
-
IncludeDefinitions True whether to automatically include dependencies - With IncludeDefinitionsTrue, definitions required for the evaluation of expr will automatically be sent to the kernel.
- With IncludeDefinitions->False, definitions required for the evaluation of expr must be loaded and evaluated explicitly during the evaluation of expr.
- Kernels are specified using RemoteKernelObject, or short string forms.
- The following local or remote kernel string forms are recognized:
-
"ssh://user@hostname:port/path" a kernel on the given machine, accessed using SSH "ssh://hostname" use the default path, user and port on the given machine "hostname" equivalent to "ssh://hostname" "wstp://server:port/pool" a kernel on a WSTPServer "wstp://server" use the default port and kernel pool "Local" the default local kernel "localhost" a kernel on the same machine "file:///path/to/wolfram" the given kernel on the same machine "https://www.wolframcloud.com/" a kernel in the Wolfram Cloud - The path in "ssh://hostname/path" or "file:///path" is the absolute path of a suitable kernel command.
- SSH cannot ask for passwords interactively. Keys can be specified, or an SSH password agent can be used.
Examples
open allclose allBasic Examples (4)Summary of the most common use cases
Launch a local kernel and evaluate some of its properties:

https://wolfram.com/xid/09b6bxu2s-tw9cgt

Launch a specific kernel given by its absolute path:

https://wolfram.com/xid/09b6bxu2s-ltrcaq

Each instance of LocalEvaluate launches a new kernel, which is discarded after the evaluation:

https://wolfram.com/xid/09b6bxu2s-7yr4h2


https://wolfram.com/xid/09b6bxu2s-9cmmdm

The same evaluation can be performed on several kernels:

https://wolfram.com/xid/09b6bxu2s-56gc2c

Scope (3)Survey of the scope of standard use cases
Local Kernels (3)
Connect to the default kernel the same machine where the request is made:

https://wolfram.com/xid/09b6bxu2s-i6na6w


https://wolfram.com/xid/09b6bxu2s-edh608

Use a specific local kernel, given by its absolute path in a file URL:

https://wolfram.com/xid/09b6bxu2s-v4py1y

Use a specific local kernel, given by its relative path:

https://wolfram.com/xid/09b6bxu2s-rk1263

Generalizations & Extensions (1)Generalized and extended use cases
A result received is normally evaluated further on the receiving side:

https://wolfram.com/xid/09b6bxu2s-n1phxz

https://wolfram.com/xid/09b6bxu2s-ty8n3y

Prevent the evaluation of the result received by wrapping it in Hold:

https://wolfram.com/xid/09b6bxu2s-9c8jgx

Options (1)Common values & functionality for each option
IncludeDefinitions (1)
By default, necessary definitions for an evaluation are sent to the remote kernel:

https://wolfram.com/xid/09b6bxu2s-s4wgnl

https://wolfram.com/xid/09b6bxu2s-6s01lq

Without these definitions, no evaluation takes place on the remote kernel:

https://wolfram.com/xid/09b6bxu2s-yvm6k5

Properties & Relations (2)Properties of the function, and connections to other functions
Use the kernel given by $DefaultLocalKernel:

https://wolfram.com/xid/09b6bxu2s-k85psu


https://wolfram.com/xid/09b6bxu2s-ovbilm

Given the same kernel specification, LocalEvaluate and RemoteEvaluate behave the same:

https://wolfram.com/xid/09b6bxu2s-hu2qs2


https://wolfram.com/xid/09b6bxu2s-1t84dz

Wolfram Research (2022), LocalEvaluate, Wolfram Language function, https://reference.wolfram.com/language/ref/LocalEvaluate.html.
Text
Wolfram Research (2022), LocalEvaluate, Wolfram Language function, https://reference.wolfram.com/language/ref/LocalEvaluate.html.
Wolfram Research (2022), LocalEvaluate, Wolfram Language function, https://reference.wolfram.com/language/ref/LocalEvaluate.html.
CMS
Wolfram Language. 2022. "LocalEvaluate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LocalEvaluate.html.
Wolfram Language. 2022. "LocalEvaluate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LocalEvaluate.html.
APA
Wolfram Language. (2022). LocalEvaluate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LocalEvaluate.html
Wolfram Language. (2022). LocalEvaluate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LocalEvaluate.html
BibTeX
@misc{reference.wolfram_2025_localevaluate, author="Wolfram Research", title="{LocalEvaluate}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/LocalEvaluate.html}", note=[Accessed: 31-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_localevaluate, organization={Wolfram Research}, title={LocalEvaluate}, year={2022}, url={https://reference.wolfram.com/language/ref/LocalEvaluate.html}, note=[Accessed: 31-May-2025
]}