4
$\begingroup$

I want to show the parallel kernel status within a notebook, and not in the separate Parallel Kernel Status window.

How can I programmatically access the Performance Measurements data shown in the Status window?

enter image description here

$\endgroup$
3
  • $\begingroup$ I edited your post to make it easier to understand. Please review my edits. $\endgroup$
    – Szabolcs
    Commented Dec 15, 2016 at 8:15
  • $\begingroup$ Are you simply looking for Parallel`Developer`KernelStatus[] (try it) or do you want to get the actual numbers? $\endgroup$
    – Szabolcs
    Commented Dec 15, 2016 at 8:15
  • $\begingroup$ Wow!! The problem is solved easily this way !! Thank you. $\endgroup$
    – Milk
    Commented Dec 15, 2016 at 8:20

1 Answer 1

4
$\begingroup$

To show the status inline within a notebook (and not a separate window), first trigger loading the parallel tools:

Parallelize;

The evaluate

Parallel`Developer`KernelStatus[]

If you need to know how each column in this table is computed, take a look at

<<GeneralUtilities`

PrintDefinitions["Parallel`Status`Private`remoteStatus"]

It is in fact TimeUsed that's being reported.

Spelunking reference:

  • NotebookOpen@FindFile["Parallel`Status`"]
$\endgroup$

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.