Tag Info

Hot answers tagged


(Reposting my comment as an answer, just to take the question off the unanswered list) This is a bug and has been fixed in version 10.2. I am not aware of any workarounds that may be applicable in earlier versions.


After a few days of searching I finally found a solution. The problem is that Workbench in debug mode changes the options of InstallJava on parallel kernels. So the solution is just to use on the parallel kernels the command line used on the main kernel by InstallJava, like below. Needs["JLink`"] commandLine=InstallJava[]//First LaunchKernels[1] ...


This was not really a Mathematica problem. The system disc was full. (Zero bytes free.) Freeing up some space enabled kernel launches to work again.


After multiple failures to achieve truly unattended batch plotting setup solely in Mathematica, I have finally decided to go with a hybrid approach instead. I have exported the plotting commands into a Mathematica script, then use a separate Python script to call WolframScript. After a couple of plots, the MathKernel will still crash as usual. This will ...


This may not be the fastest way, but it's a way: SetSharedFunction[ParallelSow] ParallelSow[expr_] := Sow[expr] Reap[ParallelDo[If[countedQ[i], ParallelSow[f[i]]], {i, 1, 10^7}]] where countedQ[i] is some Boolean function that determines whether f[i] gets added to the accumulated list. Feel free to make improvements. Note that AppendTo scales as $O(n^2)$ ...

Only top voted, non community-wiki answers of a minimum length are eligible