$DefaultKernels
is the list of kernels that are configured for parallel computing.
$DefaultKernels
$DefaultKernels
is the list of kernels that are configured for parallel computing.
Examples
open all close allBasic Examples (3)
The default value of $DefaultKernels:
$DefaultKernelsWhen no kernels are running, LaunchKernels uses this list as the default to launch kernels:
CloseKernels[];LaunchKernels[]Kernels can be specified using URL syntax:
$DefaultKernels = {
"file:///usr/local/bin/wolfram?4",
"ssh://sirius//usr/local/bin/wolfram130?4",
"wstp://raspi8?2",
"lwg://gcov.wolfram.com?2"
}LaunchKernels[]Kernels can be specified using KernelConfiguration:
$DefaultKernels = {
KernelConfiguration["localhost", "KernelCount" -> 4],
KernelConfiguration["sirius", "KernelCount" -> 4, "KernelCommand" -> "wolfram130"],
KernelConfiguration["wstp://raspi8", "KernelCount" -> 2]
}LaunchKernels[]Applications (2)
Remember the current value of $DefaultKernels persistently between sessions:
InitializationValue[$DefaultKernels] = $DefaultKernelsIn a new session, the value is restored:
Quit[]$DefaultKernelsRemove[InitializationValue[$DefaultKernels]]In the next session, the value reverts to the default:
Quit[]$DefaultKernelsHistory
Text
Wolfram Research (2021), $DefaultKernels, Wolfram Language function, https://reference.wolfram.com/language/ref/$DefaultKernels.html.
CMS
Wolfram Language. 2021. "$DefaultKernels." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$DefaultKernels.html.
APA
Wolfram Language. (2021). $DefaultKernels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$DefaultKernels.html
BibTeX
@misc{reference.wolfram_2026_$defaultkernels, author="Wolfram Research", title="{$DefaultKernels}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/$DefaultKernels.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_$defaultkernels, organization={Wolfram Research}, title={$DefaultKernels}, year={2021}, url={https://reference.wolfram.com/language/ref/$DefaultKernels.html}, note=[Accessed: 13-June-2026]}