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$
7
$\begingroup$

From notebook A execute this:

nb = CreateDocument[{ExpressionCell[Defer[Quit[]], "Input", 
    Evaluator -> "B"]}]; SelectionMove[nb, All, Notebook]
SelectionEvaluate[nb]
NotebookClose[nb]
$\endgroup$
  • $\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 '13 at 17:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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