The Kernel is the back-end application thread that does the actual evaluation of all non-graphical expressions. It can be accessed directly through the console but is more commonly working behind the scenes to power the Notebook Interface. Multiple Kernels may be run for parallel computation.

learn more… | top users | synonyms

28
votes
2answers
844 views

What information is sent to Wolfram Research when loading or working with Mathematica?

Recently I am told that information unknown to the user is sent to Wolfram Servers. Is there any truth behind it ? I was told that more than just an IP address of the user is sent to them and that ...
1
vote
1answer
60 views

Kernel quits on closing notebook

Mathematica quits (exits) when the single notebook I'm working on is closed. How to prevent this? Win7, v10 Mathematica
15
votes
1answer
301 views

Kernel crash after idle in version 10.0

In version 10.0, when I leave the Mathematica section idle for some time (of order an hour), the kernel quit automatically. The syntax highlighting is gone and the variables that has defined before ...
0
votes
0answers
52 views

Death of parallel sub-kernels

EDIT : Finally, the new Mathematica 10.0 seems to fix it. I have a little parallelization problem. I wrote a code to generate a quasicrystal by dynamical generation. Here the code: ...
1
vote
1answer
43 views

Keep batch-mode kernel alive

I made a small HTTP server using jlink that works when running with the frontend. Now I need to keep a stand-alone math kernel alive after all functions have evaluated for the server to stay up. All ...
1
vote
0answers
53 views

Parallel kernel and front end

I have a piece of code which looks like this: ParallelTable[ Monitor[ Table[ <code here> ,{i,i1,i2]; ,i]; ] so basically a ...
0
votes
1answer
111 views

How does Mathematica interpret a expression?

I'm a beginner to Mathematica. I'd read several document. But I still have a problem. For example, every expression in Mathematica are of the form ...
4
votes
2answers
153 views

Keep kernel running for execution of scheduled task

How can I keep a kernel running until all scheduled tasks have completed? For example upon running the following script bazinga.m: ...
2
votes
0answers
90 views

Kernel quits upon evaluation of a limit

Using 9.0.1 on OS 10.9.3, I evaluated Limit[(1 + t/Sqrt[n])^-n, n -> Infinity] at the start of a session and it caused an error that made the kernel quit. ...
5
votes
1answer
284 views

CompilationTarget->“C” crashes the kernel

Major deviation from my original post I realize that the long code I originally had was very discouraging to debug and did not attract any answers. So I have decided to revamp this question ...
3
votes
0answers
68 views

Suspend computation so it can be resumed even after the PC is rebooted

Sometimes a computation takes a long time. But when I sleep in the night, I want to shutdown my PC. Next morning when I wake, I want to start Mathematica and resume the computation. If you are ...
0
votes
0answers
40 views

Evaluating expressions stored in notebook from Java

The Mathematica kernel can generally open a notebook and evaluate the functions present in the notebook using UsingFrontEnd Command. Example: ...
2
votes
1answer
115 views

Copy a variable to a specific kernel in Mathematica [closed]

I would like to copy some parameter from the main Kernel of Mathematica to the parallel kernels available. So I'm running now a command like: ...
0
votes
0answers
54 views

Use remote kernel on debian from win8

I spend almost two week to figure out how mma could use a remote kernel. The following is my results: The basic environment is: mma9.0.1 on win8 as my host (local machine); mma9.0.1 on Deiban 7 as a ...
0
votes
0answers
28 views

KernelObject::rdead on local kernels

I'm trying to parallelize some tasks which involve fetching data from a URL and processing it. This is the code: ...
0
votes
0answers
35 views

Multiple scripts run using same kernel

I have an external program that calls Mathematica scripts upon certain events. Each script requires a large Mathematica library to load (takes a while). Is there some way to run an initial script ...
0
votes
1answer
56 views

Launching external program in background process with ParallelSubmit

I work on the implementation of an image processing pipeline in Mathematica in which I also would like to use external programs to do certain processing steps. As an example I have macros for the ...
2
votes
1answer
149 views

Render dynamic Graphics objects static

As was discussed in the comments of another question (MathLink Graphical Output (Plots) to File), Graphcis objects produced by commands such as ...
12
votes
4answers
1k views

When running Mathematica from a Linux terminal, how can I prevent a script from terminating upon logout?

I am running Mathematica on a remote Linux cluster, by the terminal, using the math command. (I do not have access to a terminal GUI. For example, when I type the ...
2
votes
0answers
166 views

Remote kernel shuts down after several seconds

I have Mathematica 9 installed on two Windows Server 2008 R2 machines. Now i want to try using one of them as a frontend with local kernels and the other one for remote kernels. OpenSSH 6.5 for ...
0
votes
0answers
17 views

Restoring a Mathematica session without notebook interface [duplicate]

It happens all the time that I close my Mathematica session and later I regret that I have done so, because there are many things that I would like to check. I would like to know if there is a way to ...
3
votes
0answers
100 views

Launching Remote Kernels takes a lot of time

I recently played around with establishing a remote kernel setup without using mathematica grid. To do this I use the LaunchKernels[] command and ...
3
votes
0answers
56 views

Clean webMathematica Kernel

On my webMathematica server, certain input values are being saved between page loads on different computers. I assume this is because the kernel is not clearing the values after it finishes loading a ...
0
votes
0answers
79 views

Save open Mathematica Notebook from command line or second Notebook to avoid data loss

I was executing a long Mathematica Notebook over night. The Mathematica instance is running on a Linux workstation (in a vnc server session to be precise). Now I cannot access this session anymore, ...
0
votes
1answer
113 views

How to change the MATHEMATICA_USERBASE directory

I’ve found, from reading the help on MathKernel in the help system and in a number of questions here, that to make that change in Windows at least one apparently needs to enter “MathKernel … options” ...
1
vote
0answers
450 views

Threads vs Cores: How many kernels need to launch in parallel Mathematica?

I have a dual-core intel machine. I would like to test how many parallel local kernels should be launch to get the optimized performance. Knowing that the HyperThreading technology of Intel could run ...
10
votes
1answer
303 views

Scheduling Mathematica scripts to run from a command line [duplicate]

I want to run Mathematica "jobs" on a daily/weekly basis to do system maintenance and as part of daily processing operations. What is the best way to do this?
2
votes
1answer
146 views

Run kernel script in cygwin without window popping up

I'm calling mathematica scripts running kernels through a cygwin terminal, which are again executed from c++ code. When I do this a window pops up, prints warnings and errors if there are any, and ...
7
votes
1answer
181 views

ScheduledTask with scoped variables. Working with timed evaluation

I guess I have to try harder and focus more but timed evaluation always frustrates me. I will show the issue on simple example of delayed trigger. ...
4
votes
0answers
162 views
+50

Keyboard issues with Mathematica 9.0.1 for Linux

After working for a while with Manipulate function and increasing the number of variables to be manipulated, keyboard stops working properly in the Notebook. It ...
0
votes
0answers
65 views

kernel shuts down during listplot [duplicate]

In at least the following situations, I have experienced that the kernel has shut down during evaluation. The thing is that there is no message at all when it shuts down. ...
4
votes
2answers
144 views

Why does Mathematica stop when run in the background in command line mode?

If I try to start a Mathematica script in the background from the command line, like this: math -script someFile.m & then the process gets automatically ...
4
votes
0answers
92 views

MathKernel with `-noprompt` hangs indefinitely when converting simple TeX expression

If I enter MathKernel -noprompt -run 'ToExpression["1", TeXForm]; Exit[]' the kernel hangs, apparently while running TeX.exe ...
-4
votes
1answer
156 views

How to use all the kernels efficiently

We build a project with Java and Mathematica technologies. For this project we have written a bunch of functions in Mathematica and integrated some functions in one ...
5
votes
1answer
145 views

Why is $ProcessorCount different than the selected number of cores in PBS?

By using ParallelTable and submitting my Mathematica code to a cluster, I noticed that it was enhancing the speed even when I selected a single core in a single ...
0
votes
0answers
48 views

CreateDocument using a specific Evaluator (Kernel)

I was trying to build a button to create a new document that contained a dynamicaly changing table. In the parent notebook i am using another kernel - not the usual "Local". The problem is that in the ...
2
votes
1answer
157 views

How to correctly disconnect from the kernel?

I'm connecting to and disconnecting from the kernel but I'm doing something wrong. I crash the text formatting in the terminal and got some warnings. There are some instructions to connecting to the ...
0
votes
0answers
80 views

running Mathematica installed in Windows, from Linux

Both the operating systems are installed side by side on my computer. The Windows hard drive mounts as an external hard drive on running Linux and I can access all the Windows files, as you'd know. ...
5
votes
2answers
256 views

Why LibraryLink function crashes at a second time?

I'm trying link one of Lapack's function to Mathematica through LibraryLink, and the Library function works great at the first execution but crashes at the second time. Here is the code (modified ...
15
votes
2answers
282 views

MathKernel doesn't return all Messages

In Mathematica I run this command: Plot[Sin[x], {x, 1, 15}, GridLines -> error] It generates a Plot with this error message: A GridLines specification ...
0
votes
0answers
163 views

Licence and number of controlling kernels

I'm trying to understand the differences between controlling kernels and subkernels. I created 3 local kernels (kernel configuration options > add), each using a maximum of 8 local subkernels. ...
3
votes
1answer
118 views

Difference between Directory[] and NotebookDirectory[] .. a trailing /?

The following was the code: Directory[] NotebookDirectory[] The output was ...
1
vote
2answers
197 views

Can I run calculations on an external ssh server that doesn't have Mathematica installed? [closed]

I am currently running some rather compilex Mathematica calculations on my laptop and sometimes run into an out-of-memory errors. However, I have access to some larger simulation servers via ssh, but ...
6
votes
1answer
104 views

ClearAll[“Global`*”] stops working with Context set to 'unique to this Notebook'

I just changed my default notebook context to 'unique to this Notebook' so that variables don't roll across numerous open notebooks. Doing this, however, made the command ClearAll["Global*"] stop ...
1
vote
0answers
366 views

Configuring Remote Kernel via terminal in Linux

There's a server at work, which I would like to use as a remote kernel. I have access to it via terminal (server is running Red Hat, my client Windows 7). I don't know if the kernel is set up or not, ...
6
votes
2answers
298 views

Using NotebookDirectory in batch-mode

I am running Mathematica via the terminal (Linux) and my .m-script contains the command: ...
3
votes
0answers
37 views

Behavior of $PreRead in Kernel

I am interested in making a simple accounting style line calculator that allows me to interact with it something like this: ...
2
votes
0answers
267 views

Runaway MathKernel!

I was running a simulation and everything went south (my fault, stupid coding error). So I quit the kernel. Everything was running very slowly, as if it were doing some kind of large calculation. ...
1
vote
1answer
218 views

Opening multiple kernels in command line for batch operation

I have been searching around for a while, and perhaps I'm just using the wrong terminology, but I haven't found a way to do this. I have a mathematica notebook converted and saved as nobel_test.m, ...
4
votes
2answers
464 views

Keep MathKernel Running In Background - Speed Up Execution Time

Background: I'm running Debian on a remote server with Mathematica installed. I have several dozen small mathematica files that are run in cron jobs at unpredictable intervals and updated based on a ...