15
$\begingroup$

I have a Mathematica script which takes a few hours to run. I want to be able to open another notebook while it's running and do some other computations. I have enough many cores on my computer for this to be possible so it shouldn't be an issue.

What do I need to configure so I can be running several notebook scripts in parallel?

$\endgroup$
1
  • 1
    $\begingroup$ The question is indeed a duplicate, but for some reason I like this answer a bit more. $\endgroup$
    – Ajasja
    Aug 20, 2013 at 10:02

1 Answer 1

22
$\begingroup$

Go to Evaluation->Kernel configuration options and add a local Kernel (name it "2nd Kernel" or something). Then, in your second notebook, select in Evaluation->Notebooks kernel the kernel you just added. Your license must support additional kernels.

$\endgroup$
6
  • $\begingroup$ Ahh great, thanks a lot! You're my saviour :) $\endgroup$
    – Haffi112
    Aug 20, 2013 at 9:31
  • 1
    $\begingroup$ @Haffi112 You can also upvote together with an accept if it fits your needs :) $\endgroup$
    – Kuba
    Aug 20, 2013 at 9:33
  • 1
    $\begingroup$ The upvote requires 15 reputations and I only have 13 >_< I'll keep it in mind :) $\endgroup$
    – Haffi112
    Aug 20, 2013 at 9:41
  • 3
    $\begingroup$ If you're using a second kernel, it is not necessary to set the notebook's default context. It's not harmful...the two items are simply not related to one another. $\endgroup$
    – John Fultz
    Aug 20, 2013 at 10:23
  • $\begingroup$ Absolutely right, I'll fix it $\endgroup$
    – Volker
    Aug 20, 2013 at 10:47

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