Questions tagged [kernel]

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.

Filter by
Sorted by
Tagged with
4 votes
1 answer
240 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 ...
Phys Mate's user avatar
2 votes
0 answers
84 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 ...
chasly - supports Monica's user avatar
2 votes
0 answers
222 views

Random "silent" crash when running a math kernel in terminal for a long time [closed]

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 ...
Matthias Koenig's user avatar
1 vote
1 answer
128 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 ...
Jerry Guern's user avatar
  • 4,553
16 votes
1 answer
582 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 "...
Szabolcs's user avatar
  • 233k
3 votes
0 answers
90 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 ...
Patrick's user avatar
  • 41
9 votes
1 answer
377 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 ...
Chris Degnen's user avatar
  • 30.7k
5 votes
1 answer
893 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). ...
RonH's user avatar
  • 281
5 votes
1 answer
134 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 ...
jss's user avatar
  • 405
4 votes
1 answer
3k 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 not ...
Sepideh Abadpour's user avatar
0 votes
0 answers
44 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 ...
meik's user avatar
  • 21
3 votes
1 answer
552 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 ...
Raymond Ghaffarian Shirazi's user avatar
3 votes
0 answers
137 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?
M.R.'s user avatar
  • 31.2k
1 vote
1 answer
300 views

Kernel is crashing during evaluation of FindRoot [closed]

I have a bunch of aux functions and constants ...
Djole's user avatar
  • 33
5 votes
1 answer
106 views

How could I set TimeConstrained globally?

I want to set TimeConstrained globally, I tried use $PrePrint as bellowed script: ...
Michael's user avatar
  • 491
37 votes
3 answers
790 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 ...
ibeatty's user avatar
  • 2,533
13 votes
1 answer
259 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 ...
M.R.'s user avatar
  • 31.2k
1 vote
0 answers
97 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 ...
MatrixBreaker's user avatar
3 votes
0 answers
262 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 ...
Kevan's user avatar
  • 31
2 votes
0 answers
140 views

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

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 ...
AngelGabriel's user avatar
9 votes
1 answer
511 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?
M.R.'s user avatar
  • 31.2k
15 votes
1 answer
273 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 ...
Reb.Cabin's user avatar
  • 8,651
18 votes
3 answers
5k views

The most simple Manipulate freezes 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 ...
glS's user avatar
  • 7,543
22 votes
2 answers
911 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 ...
M.R.'s user avatar
  • 31.2k
2 votes
0 answers
156 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 ...
Jess Riedel's user avatar
  • 1,516
6 votes
1 answer
592 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 ...
LifeWorks's user avatar
  • 427
3 votes
1 answer
294 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 ...
Vaclav Kotesovec's user avatar
1 vote
0 answers
168 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 ...
Vladimir Reshetnikov's user avatar
3 votes
0 answers
489 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 8 ...
Chen Stats Yu's user avatar
5 votes
2 answers
462 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 Import...
Saran Tunyasuvunakool's user avatar
2 votes
0 answers
34 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 ...
qazwsx's user avatar
  • 8,666
1 vote
0 answers
132 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 "...
dsingh's user avatar
  • 669
3 votes
1 answer
446 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
user29336's user avatar
2 votes
0 answers
224 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) will ...
dsingh's user avatar
  • 669
21 votes
1 answer
2k 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 ...
Kuba's user avatar
  • 136k
4 votes
1 answer
226 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 ...
Avneet Singh's user avatar
5 votes
2 answers
320 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?
M.R.'s user avatar
  • 31.2k
1 vote
0 answers
157 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 "...
M.R.'s user avatar
  • 31.2k
1 vote
2 answers
287 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 ...
Cai Thinh's user avatar
1 vote
2 answers
221 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 ...
thecommexokid's user avatar
9 votes
1 answer
229 views

TimeConstrained[Delete[Range[1],1]] causes kernel crash

Bug introduced in 10.0 and fixed in 11.1 Run these two samples of code here (AFTER SAVING YOUR CURRENT WORK): ...
2012rcampion's user avatar
  • 7,801
0 votes
1 answer
81 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. ...
tarhawk's user avatar
  • 769
5 votes
1 answer
1k 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: ...
yippy_yay's user avatar
  • 243
8 votes
1 answer
329 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 ...
Kuba's user avatar
  • 136k
1 vote
0 answers
192 views

How to make Show work in Mathematica 10 Kernel [closed]

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 failed....
Zachary Levine's user avatar
6 votes
1 answer
3k 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!
M.R.'s user avatar
  • 31.2k
0 votes
1 answer
65 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}] ...
Chen Stats Yu's user avatar
8 votes
0 answers
478 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 ...
Lukas's user avatar
  • 2,652
0 votes
0 answers
345 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 ...
An old man in the sea.'s user avatar
5 votes
1 answer
222 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" ...
luyuwuli's user avatar
  • 2,784

1
3 4
5
6 7