Hot answers tagged kernel-startup
18
Typically, Mathematica contacts the license server every 2 minutes. If you have a license which supports a very large number of processes, that interval can grow (to help MathLM to scale better). It will never be more than 30 minutes.
If three consecutive license checks fail, then Mathematica will instead revalidate the entire license file on what would ...
11
You can use the global AutoOpenNotebooks setting to give a list of notebooks that must be opened on startup. The default path where it looks for these notebooks is $UserBasedirectory/SystemFiles/FrontEnd/TextResources.
Now every time you open Mathematica, that notebook will be opened (in my case, tile.nb).
11
Here are two possible approaches.
Using initialization code
Firstly, one notes that the process priority is set (in AddOns/Applications/SubKernels/LocalKernels.m) using
SetSystemOptions["ProcessPriority" -> -1];
where the numeric value corresponds to a priority as follows:
-2: low
-1: below normal
0: normal
1: above normal
2: high
Process ...
9
I assume this is caused by the dynamic content becoming active and trying to run its internal code involving standardBasis which is at that moment undefined (and you can't do a Parton an undefined variable). You may add SaveDefinitions->True to your manipulate to store definitions it depends on.
SaveDefinitions has the disadvantage that it may cause ...
9
You appear to have access to 7 Mathematica licenses each of which allow running 4 sub Math kernels. This should allow you to address
4 + 28 = 32 kernels
Also of interest, each Mathematica network license comes with a home use license. You could allocate the home use licenses to additional machines (I think even virtual machines) and get another 4 ...
8
Not a full answer, but a little too long for a comment.
You may need to pay a close attention to licensing. If the results of your computation are used on a single machine (e.g. somehow saved to a database or used further in the computation), you may only need a professional single-machine license. If they are going to be used by other employees / machines ...
7
One way to deal with problems like this is to use DynamicModule inside the Manipulate:
Manipulate[
DynamicModule[{e1, e2, standardBasis, y, p}
, e1 := {1, 0}
; e2 := {0, 1}
; standardBasis := {e1, e2}
; y := 3
; Dynamic[
p := {x, y}
; arrowsReference =
Table[Arrow[{p, p + Part[standardBasis, j]}], {j, 2}]
]
]
, {{x, 1}, ...
6
The list of recently opened notebooks (as shown in File > Open Recent) is saved in the NotebooksMenu option for $FrontEnd, arranged by ascending absolute time (i.e., most recent is last). So the most recent notebook can be opened with:
Last[NotebooksMenu /. Options@$FrontEnd] /.
HoldPattern[_ -> {file_, ___}] :> NotebookOpen@file
Some ...
6
webMathematica is probably the most secure solution. Unless someone hacks your sever there is no way to get to the source of your program.
Using webMathematica you could easily use standard Web services. Check out the documentation
So e.g., you can create a macro in Excel and then it looks like
In this way you use standard web technology and keep all ...
3
An extended comment follows.
At a high level distributed/parallel processing can get managed in a couple of different ways.
Some approaches have used a single communication channel between a master kernel and each of its slave kernels. These single channels handle both data passed back and forth as well as monitoring and management functions.
A master ...
3
Of course this is just an academic technical exercise and cannot be really used due to legal restrictions of the CDF license.
On Linux and Windows with JLink this seems to work easily:
[rolfm@localhost cdffun]$ cat CDFFun.java
/********************************************************
* CDFFun.java
* ...
2
The Sub MathKernel licenses are used for the additional kernels used with parallel processing constructs. With those kernels you do not interact directly, but you can submit jobs to them and collect results. See http://www.wolfram.com/products/mathematica/newin7/content/BuiltInParallelComputing/ for details on the parallel constructs which use those ...
2
I made a test file "test.m"
Export["test.png",ListPlot[RandomReal[{0,100},{100}]]];
and ran it in the terminal:
/Applications/Mathematica.app/Contents/MacOS/MathKernel -noprompt -run
"<</Users/mikehoneychurch/Desktop/test.m"
and it worked fine. Then tried with Player Pro
/Applications/Wolfram\ Player\ Pro.app/Contents/MacOS/MathKernel -noprompt ...
2
R.M beat me but I'll post this anyway for variety.
You can open the last Notebook with:
Options[$FrontEnd, NotebooksMenu][[1, 2, -1, 2, 1]] // NotebookOpen
Methods for preventing the opening of a blank Notebook, for both version 7 and 8 are here:
How do I prevent auto loading of blank notebook at startup?
2
This answer is not mine but halirutan's who helped me in the chat.
First, find the folder with files named "MathKernel" and "Mathematica" via the terminal. The appropriate command is cd Applications/Mathematica.app/Contents/MacOS/. Or the equivalent path on your machine.
Second, start a clean Mathematica session via ./Mathematica -clean. I'm not sure ...
1
This may help. I have no experience with Player Pro, but the free CDF Player will load a script if and only if it is Encoded[]; this has to be done by a full version of Mathematica. It is loaded into CDF Player with the call:
Get["filePathToEncodedScript.m"]
The problem is that there is no way to get a result of the operation out of the Player kernel ...
1
Sometimes, yes it is sometimes distributed. I can't say for sure when and why, but I have noticed cases where ParallelMap does not distribute all the memory, but ParallelTable does.
Basically, Mathematica is trying to make things easy. You don't always want to have to spell out each and every variable that you want available on a remote kernel, and so it ...
Only top voted, non community-wiki answers of a minimum length are eligible


