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

1
vote
1answer
53 views

ParallelTable should distribute dedicated evaluation range to different kernels

I have 4 kernels and would like that in ParallelTable: ...
0
votes
0answers
34 views

How to run code in two notebooks simultaneously [duplicate]

I have the problem that I cannot run code in a second notebook when another notebook is being executed (here only a single core is used). The CPU of my computer has 4 cores (Win 10, Mathematica ...
0
votes
1answer
59 views

ParametricPlot3D crashes Kernel when called repeatedly in loop

I have a parametric function surf[u,v]. It can be plotted successfully like this: ...
0
votes
1answer
87 views

V 10.3.1 kernel crashes after an evaluation on Mac OS X El Capitan

I tried to solve a simple system of first order differential equations an then an algebraic system in Mathematica 10.3.1 on my MacBook Pro. I did't have a problem with Mathematica until today. Here's ...
10
votes
0answers
69 views

How to clean up temporary files when the kernel exits?

There are Mathematica packages that must create temporary files to function. If we are implementing such a package ourselves, how can we ensure that the temporary files will get cleaned up when the ...
1
vote
0answers
17 views

How to deal with MathLinkException in webMathematica

I'm using webMathematica, my license supports a maximum of two kernels running at the same time. Sometime an error occurs, I've seen three at least (from webMathematica.log): ...
1
vote
0answers
21 views

License not released after kernel is stopped for KernelTimeLimit reached?

Using webMathematica, doing massive tests of our functions (each call can take from 0 to 15 seconds). After a while we started getting lots of 403 Forbidden errors. webMathematica.log: ...
2
votes
0answers
34 views

`ParallelTable` pending the MathKernel after execution

I have done a ParallelTable computation in script mode. After execution, the output is fine and I've got all the data I needed. but the kernel seems pending, ...
0
votes
0answers
33 views

Integration of a Gaussian function in kernel density estimation

I came recently across an odd result of mathematica, which so far I cannot explain. In a standard kernel density estimation (example http://www.ssc.wisc.edu/~bhansen/718/NonParametrics1.pdf) the ...
1
vote
0answers
33 views

Starting notebook from text mode

I am trying to start new notebook from a command line mode with command UsingFrontEnd@CreateDocument[] The notebook is created but it stays in minimized mode at the ...
1
vote
1answer
53 views

How to export a list of numerical data to a file in the terminal?

I have a very simple program that export a list to a data file in table form. ...
16
votes
2answers
872 views

How to restart computation when kernels die?

When an important process needs to be kept alive, there are monitoring tools to restart them if they die (e.g. god tasks in ruby), in my case I have an overnight scraping task that I need to have done ...
4
votes
2answers
69 views

how to share variables between subset of notebooks

I have some notebooks belonging to a project. I want them to share definitions with each other, but not with other notebooks. Here is one approach that I thought would accomplish this: go to ...
0
votes
0answers
51 views

?f returns a weird result [duplicate]

Anybody know why something like this happens?
3
votes
1answer
47 views

LaunchKernels behavior

I have one processor with 2 cores on my local computer. CloseKernels[];LaunchKernels[] (* {"KernelObject"[1, "local"], "KernelObject"[2, "local"]} *) I can't ...
1
vote
1answer
65 views

Mathematica 10 not launching on Windows 8

I have been using Mathematica 10.0.2 in my laptop with Windows 8 and it was working fine. One day I would try to open it as usual but it would not launch (I'd click at its icon in the start menu and ...
3
votes
0answers
60 views

Problems with Fedora 22 and Mathematica 10.2/10.3

I'm using Fedora 22 Linux distribution and since I switched to Mathematica 10.2 I'm experiencing some very weird behavior of the frontend. From time to time, the frontend would freenze for a few ...
4
votes
1answer
91 views

ListVectorPlot crashes kernel after two evaluations

I am currently trying to produce many plots by using ListVectorPlot, but every time I re-evaluate my code, the kernel crashes. I have set $HistoryLength=0 and ...
2
votes
0answers
60 views

Long delays before showing the result in a notebook

I'm new to Mathematica. I have Version 10.3.0 running under Windows 10, 64-bit. If I open the 10.3.0 kernel and type 2 + 2 Shift Return I get an immediate answer. If I open the main program and ...
1
vote
0answers
45 views

Random “silent” crash when running a math kernel in terminal for a long time

I sometimes use Mathematica to run very long calculations in the terminal (Debian). To do this I use the command: math -script (filename) Now after several hours ...
1
vote
1answer
81 views

Why does Timing return different times for the same calculation?

I did an experiment in which I calculated the same quantity two different ways to see which method was faster. To my surprise, the kernel time was different in different runs. In fact, which method ...
8
votes
0answers
80 views

How to prevent the kernel from exiting when a LibraryLink function segfaults?

I do realize that this might be controversial, but I believe I have a real need for it this time. If a process tries to access memory at a location it doesn't own, it will by default exit with a ...
2
votes
0answers
44 views

Why do notebooks reset themselves now and then? [closed]

Now and then I am working on a notebook and suddenly it reset itself. What I mean is that I am entering commands and when I type enter, the notebook command number goes to 1 and I have lost all ...
7
votes
1answer
78 views

Launch Front End from .NET MathKernel and return result to .NET

Is it possible to launch a front end and open a notebook from a .NETLink kernel and return a result from the notebook to .NET? In the code below "x" appears in the .NET textbox after 10 seconds but ...
4
votes
1answer
138 views

Kernels permanently consume 100% CPU

I have a problem with Mathematica kernels consuming 100% CPU, even when they seemingly idle: I start Mathematica (version 10.1.0 for Linux x86, 64 bit on Linux 2.6.32, server with 4 cores, 16 GB RAM). ...
5
votes
1answer
86 views

How to avoid kernel shutdown when importing a file

I am importing a CIF file and the Kernel shutdown (Mathematica 10). The only instruction is this Import["myfilename.cif"] I tried CheckAbort unsuccessfully. How can I catch the error and keep ...
0
votes
0answers
21 views

My screen froze Initializing Kernel [duplicate]

Wolfram Mathematica close and then opened and the screen froze kernel initialization , and not to do
4
votes
1answer
326 views

mathematica does not evaluate without internet access? [closed]

I am watching the video Hands-on Start to Mathematica Basic Graphics and for about 15 minutes I was trying to evaluate $\frac{\sin x}{x}$ and each time I encountered errors like: The result can ...
0
votes
0answers
27 views

Mathematica does not launch after RLink installation /Linux [duplicate]

Hei, I have a problem with Mathematica 10.0 launching after RLink installation. I am running Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u3 x86_64 GNU/Linux Exactly what I did: Typed on ...
3
votes
1answer
77 views

kernel not running script

I'm on under OS X trying to run a script through the kernel. My actual plan is to run a bash script which would call mathematica with an address to process a file. I have finished the code (with ...
3
votes
0answers
83 views

What part of the kernel is open sourced? [closed]

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

Kernel is crashing during evaluation of FindRoot [closed]

I have a bunch of aux functions and constants ...
5
votes
1answer
33 views

How could I set TimeConstrained globally?

I want to set TimeConstrained globally, I tried use $PrePrint as bellowed script: ...
29
votes
3answers
318 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 ...
7
votes
0answers
133 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 ...
1
vote
0answers
26 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 ...
3
votes
0answers
61 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 ...
2
votes
0answers
76 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 ...
5
votes
1answer
99 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?
13
votes
1answer
148 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 ...
8
votes
1answer
281 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 ...
15
votes
1answer
157 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 ...
2
votes
0answers
72 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 ...
6
votes
1answer
101 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 ...
2
votes
1answer
109 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 ...
2
votes
0answers
71 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 ...
4
votes
2answers
124 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 ...
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 ...
1
vote
0answers
90 views

Calling a custom function in slave kernel process connected through mathlink [closed]

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 ...