4
$\begingroup$

I have a kernel named A in one notebook and other notebook with kernel B, how can I kill B from A?

$\endgroup$

1 Answer 1

7
$\begingroup$

From notebook A execute this:

nb = CreateDocument[{ExpressionCell[Defer[Quit[]], "Input", 
    Evaluator -> "B"]}]; SelectionMove[nb, All, Notebook]
SelectionEvaluate[nb]
NotebookClose[nb]
$\endgroup$
1
  • $\begingroup$ @M.R. , is it possible to use a similar trick when running codes in 2 distinct kernels A and B, using 2 distinct Linux terminals? $\endgroup$
    – fcpenha
    Jul 1, 2013 at 17:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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