Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I know that the command LaunchKernels[] starts up four kernels on my machine:

LaunchKernels[]
{KernelObject[1, "local"], KernelObject[2, "local"], 
 KernelObject[3, "local"], KernelObject[4, "local"]}

I also figured out that the command SetOptions[EvaluationNotebook[], Evaluator -> "xyz"]; should then set the given Notebook to be evaluated on some kernel "xyz", but I cannot find the right syntax for this "xyz" to refer to for instance KernelObject[1, "local"]. What should I write there?

EDIT

This is the relevant command: FrontEndExecute[FrontEndToken["ModifyEvaluatorNames"]]. Create a couple Kernel names and evaluate in parallel.

share|improve this question
    
Related: mathematica.stackexchange.com/q/853/89 –  István Zachar May 1 '13 at 17:53
add comment

1 Answer

up vote 7 down vote accepted

LaunchKernels launches subkernels used for parallel calculations. These are not meant to and cannot be set to as the evaluator for a notebook.

To set the evaluator for a notebook, use Evaluation -> Kernel Configuration Options to set up a new kernel, then use Evaluation -> Notebook's Kernel to assign it to the current notebook.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.