8

I know I can create a new kernel for my notebook from the evaluation menu but is there a command for this? I'd really like some of my notebooks to startup their own kernel as the first line of code.

Kuba
  • 136,707
  • 13
  • 279
  • 740
user1816847
  • 389
  • 1
  • 8

1 Answers1

6

Ok, so first of all you have to be aware that number of kernels you can use is limited by license.

You can go now to Evaluation -> Kernel Configuration Options and create a new one, let's say "Kuba". It will stay on the list for future too.

Now you just need to evaluate in your notebook:

SetOptions[EvaluationNotebook[], Evaluator -> "Kuba"]

and this option will be saved in it too so no need to evaluate that line each time.

Kuba
  • 136,707
  • 13
  • 279
  • 740
  • 3
    And if you want to set the Kernel Configuration Options using commands per WRI tech support you can use the undocumented EvaluatorNames option. For example SetOptions[$FrontEnd, EvaluatorNames -> {"Local" -> {"AutoStartOnLaunch" -> True}, "Kuba" -> {"AppendNameToCellLabel" -> True, "AutoStartOnLaunch" -> False}}] – David Creech Aug 10 '16 at 15:29