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$
  • $\begingroup$ I edited your post to make it easier to understand. Please review my edits. $\endgroup$ – Szabolcs Dec 15 '16 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 Dec 15 '16 at 8:15
  • $\begingroup$ Wow!! The problem is solved easily this way !! Thank you. $\endgroup$ – user21427 Dec 15 '16 at 8:20
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`"]
| improve this answer | |
$\endgroup$

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.