Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have a piece of code which looks like this:

ParallelTable[

  Monitor[
    Table[
    <code here>
    ,{i,i1,i2];
  ,i];

]

so basically a Table which I parallelize. Each element of this parallelized table being itself a Table which I want to monitor.

I receive this error message:

FrontEndObject::notavail: A front end is not available; certain operations require a front end.

This error originates from the Monitor[]. I suspect that because my first Table is parallelized, somehow the dynamic cell into which Monitor[] will write to is not connected to any Front End or something...

How would I solve this issue?

share|improve this question
    
What happened when you started a front end? –  Oleksandr R. Jul 3 at 10:49
    
from help, it says: generates a monitor cell that shows the continually updated current value...In a notebook, the monitor cell normally appears directly after the cell in which Monitor[expr,mon] is evaluated so clearly Monitor requires a frontend. Can't be used in script/batch. –  Nasser Jul 3 at 11:28
    
@OleksandrR. Can you start a front end for each parallel kernel and use Monitor? –  acl Jul 3 at 11:46
    
In case it is not clear, I have a Front End running for my master kernel. How would I start a Front End for each child kernels ? –  coussin Jul 3 at 13:22
    
Or rather, each child kernels should use the Front End used by my master kernel... –  coussin Jul 3 at 13:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.