Message Boards Message Boards

0
|
7947 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Evaluate a second notebook on second kernel

I would like to evaluate a second notebook on a second kernel.

Specifically I want to use two notebooks and two kernels. I want to evaluate notebook B from within notebook A. However, I want all the computations from notebook B to run on Kernel B and any computations within Notebook A to run on Kernel A.

I have tried to set the evaluator for Notebook B to Kernel B. But, when I call "NotebookEvaluate[NotebookB]" from within NotebookA it everything runs on Kernel A.

Any ideas or suggestions?

POSTED BY: Wayne Weaver
2 Replies

Thanks, this works as I needed.

POSTED BY: Wayne Weaver

I believe this should work for you from NotebookA:

SelectionMove[NotebookB, All, Notebook];
SelectionEvaluate[NotebookB]

KernelB should do the evaluations, and you should see the results in NotebookB, without KernelA picking up any definitions from KernelB

POSTED BY: Nick Lariviere
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract