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

3
votes
0answers
68 views

What part of the kernel is open sourced? [on hold]

Where exactly is the "large swath of the code base" that Stephen Wolfram said was open sourced?
1
vote
1answer
106 views

Kernel is crashing during evaluation of FindRoot

I have a bunch of aux functions and constants ...
23
votes
2answers
796 views

Kernel crash after idle in version 10.0

Bug introduced in 10.0.0 and fixed in 10.0.2 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 ...
4
votes
1answer
31 views

How could I set TimeConstrained globally?

I want to set TimeConstrained globally, I tried use $PrePrint as bellowed script: ...
24
votes
2answers
210 views

How can I evaluate untrusted Mathematica code in a sandbox?

Is there any way to build a sandbox to evaluate untrusted Mathematica expressions in order to prevent them from having (malicious or accidental) harmful side effects? Context: I'm developing a system ...
5
votes
0answers
98 views

How to write crash-robust code?

When a notebook crashes all the work I was doing is lost - I'd like to ameliorate this situation! Is there a way to decorate a symbol so that it is saved to disk whenever it changes, or after a ...
10
votes
2answers
348 views

Why LibraryLink function crashes at a second time?

Bug introduced in 9.0 or earlier and persisting through 10.2.0 on OS X Update As Todd Gayley commented under halirutan's answer, this is a bug. I'm trying link one of Lapack's function to ...
1
vote
0answers
63 views

Is there a way to specify which kernel is used to import files (SOLVED)?

Following up on a previous question in which I encountered a memory leak in the JSON importer I have created a SandBox script that will run the Import and analysis on a separate kernel, which be ...
0
votes
0answers
14 views

Distribute Definitions to different Evaluator

I would like to pass on a definition from one Kernel to the other. With that I mean manually configured Kernels. In this case, I do not want to use the inbuilt Parallelization options, in order to ...
2
votes
0answers
47 views

Shared variables between notebooks using the same kernel not working in mathematica 10.1?

I am trying to access the variables over two Mathematica documents, this works fine when I use Mathematica 9 but when I attempt to do the same on 10.1 it doesn't work. I have set both notebooks to ...
4
votes
1answer
68 views

Is there a way to monitor the memory used by mathematica as a dynamic expression?

I always use the terminal's htop for this, but wouldn't it be nice to visualize per kernel the memory used in a dynamic expression?
1
vote
2answers
117 views

Strange evaluation of an sum involving binomial coefficients

I stumbled upon this problem while playing with Mathematica 10. Can anyone help me explain the following behaviour? I define a sum ...
7
votes
2answers
736 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 ...
11
votes
1answer
133 views

All value types for a symbol?

Robby Villegas here shows a nice way to see all the types associated with a symbol. He sets a symbol, valueTypes, to an explicit list of the values types in ...
2
votes
0answers
88 views

The most simple Manipulate freeze the notebook on v10.1

I realize this won't be a particularly clear question. As I'm not able myself to find a pattern for the problem I'm talking about I won't be able to give enough informations to make it fully ...
8
votes
1answer
188 views

Why am I getting a kernel crash on Chop?

Solve bug (see answer) introduced in 9.0 and persisting through 10.2.0 First post, hopefully I figure out the formatting easily. Please forgive me if this posts ...
11
votes
0answers
72 views

How to connect to EC2?

I have Mathematica 10.2 installed on an Ubuntu 14 machine in Amazon web services's elastic computer cloud. I have dido access and I'm connected to the instance though ssh on the terminal. I have an ...
1
vote
0answers
46 views

Kernel crash during numerical integral related to internet connection and WolframAutoUpdate

I am having silent kernel crashes whenever I attempt to evaluate a difficult 2D numerical integral. It is not consistently repeatable, in the sense that sometimes the same integral will evaluate ...
4
votes
0answers
43 views

When I run multiple Mathematica programs from terminal, are they supposed to use different Kernel?

Since I found that when I using notebook interface, I need to assign different kernels to different notebooks (if I want to run them at the same time), I wonder if I run those *.m files from terminal ...
3
votes
2answers
98 views

Running bits of code in a separate kernel

I am using Mathematica to generate 3D graphics frame for a video. The process goes as follows: Loop over a counter i Use ...
17
votes
2answers
384 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 ...
3
votes
0answers
228 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
90 views

Kernel crashed after $RecursionLimit = Infinity

$RecursionLimit = Infinity; T[n_, k_]:= T[n, k] = If[n == 0 || k == 1, 1, T[n, k-1] + If[n<k, 0, T[n-k, k]]]; Table[T[n!, n], {n, 1, 9}] Without ...
1
vote
0answers
36 views

What's difference between MathKernel.exe and WolframKernel.exe? [duplicate]

Recently I installed Mathematica 10.1 and noticed two different files (they have the same length, but different hashes) in the installation folder: MathKernel.exe ...
1
vote
0answers
50 views

How many kernels to set based on CPU?

Looks like 4 kernels are enough? My CPU is i7 4790K as given here. Does it also depend on the tasks and the codes? My understanding is that regardless what the benchmark says, I could always use ...
0
votes
0answers
41 views

Handling *.in and *.out files

im trying to use Mathematica in solving of algorithm tasks like this one: http://poj.org/problem?id=1274 When i was doing those in c/c++ i was able to easily pass input/output in Windows command line ...
16
votes
1answer
384 views

Quit the Kernel and start new session automatically

The question is how to quit the kernel, start a new session automatically, and to be able to run such procedure from e.g. Button. This is especially useful when ...
1
vote
0answers
22 views

How to make lines not wrapping in text-mode Mathematica? [duplicate]

When running Mathematica from Unix command line, i.e. pure text mode, the lines wrap at about 70 pr 80 characters, creating lots of visual clutter. How do I set it so that any outputs will not wrap ...
0
votes
0answers
60 views

Calling a custom function in slave kernel process connected through mathlink

I am performing a small experiment to check if we can call/execute a custom package function in slave kernel launched from master using mathLink. I have created a dummy application called ...
1
vote
1answer
83 views

How to construct a kernel from a function?

I would like to convolve an image with a mathematical function. I understand that I need to have the mathematical function in a matrix form. How can I build it? Thanks
1
vote
0answers
130 views

How can I launch kernels in series using mathlink

I have written below code to launch n kernels connected to one another in series using mathlinks. Before you read the code allow me to be more precise what i want to achieve: Source kernel(k1) ...
0
votes
0answers
47 views

Notebook vs. Kernel: Kernel giving inaccurate results

I am running a code on Mathematica (on Mac OS X) that takes high values for some of the variables. In Notebook, I set the global precision using the following code (which is well documented!) at the ...
3
votes
2answers
97 views

How can I run a list of Tasks serially?

I have a list of ScheduledTask's to run in sequence one at a time. How can I set these to run in order so that the next one starts automatically after the previous one finishes?
0
votes
0answers
37 views

How can I rename the local kernel without causing issues?

I would like to name my kernels. However when I remove "Local" Mathematica becomes unstable, sometimes crashes sometimes doesn't initialize correctly. Is there something special about the name ...
5
votes
1answer
102 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
2answers
49 views

Parallel evaluation hangs before doing anything

[I use Mathematica 9.0.1.0 on OS X Yosemite 10.10.2.] I am experiencing difficulty with parallel evaluation that I am finding extremely perplexing to troubleshoot. I define the following function in ...
0
votes
1answer
58 views

Saving a .m file generates internal error

Why does saving a .m file in version 10 generate this error? Nothing appears when I click on the link. But it happens everytime I save a file and then the file is renamed to untitled-n file. ...
11
votes
1answer
423 views

Kernel crashes when plotting $z=\sqrt{(x^2 + y^2)}^0$

Bug introduced in 7.0.1 or earlier and fixed in 10.0.1 I'm plotting a 3D function, which makes Mathematica V9 (running on Windows 7) crash all the time. Does this only happen for me or for somebody ...
3
votes
1answer
246 views

How to connect the front end of one raspberry pi with the kernel of another

I followed the instructions in this howto from wolfram, but I keep getting the error: ...
7
votes
1answer
108 views

Why can't I abort main evaluation from ScheduledTasks (Service Link)?

FrontEndExecute[FrontEndToken["EvaluatorAbort"]] is equivalent of the menu item: Evaluation >> Abort. It works with ...
0
votes
0answers
183 views

Is there a way to give Mathematica extra memory?

I am running Mathematica 10 (Student Edition) on Mac OS X 10.7.5 on an old Mac Pro. I have lots of extra RAM that the system isn't touching, and I would like to give some of it to Mathematica in the ...
0
votes
0answers
25 views

Long time quitting kernel

Sometimes, but not always, when I quit the Mathematica 10 kernel using Evaluation / Quit Kernel, it can take several minutes before the process is completed. Other times, for the same program, it only ...
1
vote
0answers
67 views

How to make Show work in Mathematica 10 Kernel

Wolfram Research says it no longer supports JavaGraphics in Mathmatica 10. This is very bad for people who prefer the Kernel to the FrontEnd. However, I am still able to get it to work. Show ...
6
votes
1answer
226 views

Context “Unique to This Notebook” makes variables black even if they're not defined?

I'm trying to use this technique to keep variables separated between different notebooks. It seems to be working fine, except that variables turn black as soon as they are evaluated — any ideas why ...
0
votes
0answers
80 views

How to kill the kernel process from the command line without killing the frontend?

Sometimes the kernel hangs and I'd like to see if I can kill the math-kernel process without destroying my front-end session and losing the changes in my unsaved notebook!
6
votes
1answer
382 views

Remote Kernel configuration works in v9 but not in v10

I have both v9 and v10 currently installed on my computer (Windows 7). For reasons that are not entirely clear, if I create a new remote kernel in one version, it is accessible to the other; however, ...
0
votes
1answer
43 views

How to set a shared variable Power (a modified one)?

Unprotect[Power]; Power[0|0., 0|0.] = 1 ; Protect[Power]; Table[0^0, {i, 5}] No problem at all. ParallelTable[0^0, {i, 5}] ...
5
votes
0answers
181 views

How to determine reason for kernel crash? -> Nelder Mead optimisation

I am making use of the Nelder Mead algorithm inside Mathematica's NMaximize to find a parameter set by solving the Schrodinger equation for a given system. (see ...
0
votes
0answers
42 views

Initiating another Kernel?

How can I start a separate kernel to do other work, while I have Mathematica working on a problem that requires lots of computation time? I have a program that must be run for many hours, preventing ...
5
votes
1answer
175 views

How to understand the difference between Sqrt and Log after ClearAll them

I came across this post, here I change the last line of the code Unprotect[Sqrt]; Sqrt[x_] = "blahblah"; Protect[Sqrt]; Sqrt[2] "blahblah" ...