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
1 vote
1 answer
198 views

After some calculations, Mathematica forgets previous results

After I do some calculations, the next calculation often just returns the previous declared result as a name and I have to start all over. My "parallel kernel configuration" is set to "manual" with ...
nate's user avatar
  • 445
6 votes
1 answer
158 views

Nonsparse SparseArray crashes the Kernel

Bug introduced in 10.0 and fixed in 11.1 On Windows 10, 64 bit, version 11.0.1, my kernel just started crashing for no reason as for as I can see. Does/should the following crash your kernel? ...
Coolwater's user avatar
  • 19.9k
1 vote
1 answer
558 views

Can I run more than two kernels simultaneously on my MacBookAir laptop?

I'm running Version Number 10.0.1.0 with Platform Mac OS X x86 (32-bit, 64-bit kernel). I have two Mathematica programs running using "Local" and "Alternative Local Kernel". Is this the most I can ...
Paul B. Slater's user avatar
4 votes
1 answer
128 views

Programmatically access the data from the Parallel Kernel Status window

I want to show the parallel kernel status within a notebook, and not in the separate Parallel Kernel Status window. How can I programmatically access the Performance Measurements data shown in the ...
Hoony's user avatar
  • 1,459
9 votes
1 answer
239 views

Why FindMinimum crashes the kernel in specific situation

Bug introduced in 11.0.0 and fixed in 11.1 I have found that FindMinimum crahses is a certain situation. Here is my minimal working example: ...
Brian Moths's user avatar
1 vote
1 answer
174 views

ParallelTable Automatically kill MathKernel

At the moment I continously encounter the problem that while using ParallelTable the process kswap needs all the memory, while the four running MathKernels receive almost zero %Memory, which slows ...
user3526475's user avatar
16 votes
2 answers
722 views

Detecting kernel initialization

Certain operations do not work during kernel initialization. Code from Kernel/init.m, the Autoload directory, or packages set ...
Szabolcs's user avatar
  • 233k
22 votes
2 answers
1k views

Restarting Mathematica automatically

I run a large computation in a loop. At each cycle of the loop I produce large arrays that I save on a disk. At each cycle I would like to Quit Mathematica and ...
Vadim's user avatar
  • 221
5 votes
2 answers
285 views

Import JPEG Fails

Bug introduced in 11.0.0 and persists through 11.0.1 I have a set of .jpg files that not only fail Import[] but also crash the kernel. Sample file here. There is ...
Abel Brown's user avatar
9 votes
1 answer
526 views

Abort all evaluations via command

Is there a command to abort all evaluations in a Mathematica Kernel? Basically I want something like: somecode; AbortAll[]; morecode; Where the ...
ahle6481's user avatar
  • 565
1 vote
0 answers
60 views

ParallelDo only output one file using $KernelID

I have some codes like this: ...
J Yeh's user avatar
  • 105
4 votes
1 answer
484 views

Autocomplete in wolfram (the Wolfram Language kernel in a shell)

Is is possible to have an autocomplete feature in the CLI of Wolfram Language kernel? I use the Raspberry Pi edition.
Mateusz Piotrowski's user avatar
7 votes
0 answers
231 views

Bug: Calling `SetSharedVariable` while kernels are running hangs them up/crashes them

Bug introduced in 9.0 or earlier and persisting through 11.0.1 or later Start a fresh kernel Quit, and maybe launch ...
masterxilo's user avatar
  • 5,689
5 votes
1 answer
332 views

Mma11 on Windows: Forgetful kernel?

I am seeing the following issue on Windows 7 x64, with the new Mma 11: I define the simple function below, and evaluate it. The first time is fine, but after that the kernel seems to have forgotten ...
Pirx's user avatar
  • 4,129
6 votes
1 answer
934 views

Mathematica versions 10 and 11 fonts are broken on Linux

Any clues on how to fix the fonts? It seems the font kerning is wrong. It happens both in graphics and in all sorts of text styles... This happens with Mathematica system fonts but also with certain ...
Ramiro Magno's user avatar
2 votes
1 answer
621 views

How to tell Mathematica do parallel computation?

I am using NDSolve on a workstation with 6 kernels. To speed up the simulation I have used LaunchKernels[] to load all the ...
lxy's user avatar
  • 165
20 votes
0 answers
219 views

Status of all Evaluators?

Since I have 4 cores on my machine I typically have 4 notebooks open each with their own kernel evaluator. I'd like to construct a dynamic pane similar to the parallel kernels status window: But that ...
M.R.'s user avatar
  • 31.2k
2 votes
0 answers
66 views

Any kernel monitor alternatives?

Sometimes the Parallel Kernel Status looks like this: Is there any way to visualize the kernels without using the built in tool?
M.R.'s user avatar
  • 31.2k
1 vote
0 answers
59 views

Simutaneously evaluate two expression in the same notebook [duplicate]

Suppose I have two expressions in the same note book but in different cells, both of them take much time to evaluate. In general, mathematica waits until the first expression is done, then evaluate ...
an offer can't refuse's user avatar
6 votes
0 answers
139 views

Finish(Asynchronous)Dynamic[]

I have a question deriving from a recent topic Synchronizing Dynamics with EventActions. tl;dr; How to authoritatively explain the influence of ...
Kuba's user avatar
  • 136k
52 votes
5 answers
6k views

Why doesn't Mathematica abort evaluation when I tell it to?

This frequently happens to me. I'll have some code, execute it, and realize it's taking a long time. My PC isn't frozen, and Mathematica itself isn't even frozen: I can select stuff in the notebook, ...
YungHummmma's user avatar
  • 3,002
7 votes
1 answer
249 views

How does the Kernel know the $Context in a localized notebook

SetOptions[EvaluationNotebook[], CellContext -> Notebook] $Context "Notebook$$70$398424`" And from different ...
Kuba's user avatar
  • 136k
31 votes
1 answer
940 views

Is the renaming mechanism of `With` flawed?

I'm confused about the renaming mechanism of With: ...
luyuwuli's user avatar
  • 2,784
5 votes
2 answers
788 views

Easy way to close all Mathematica kernels?

When developing functionalities with several parallel kernels, when a bug happens, I often have to manually close all parallel kernels (using the Task Manager in Windows) in order to start again from ...
faysou's user avatar
  • 11k
4 votes
1 answer
181 views

Kernel crash after simple input of variable defintion

Fixed in 10.3.0 I have encountered a very surprising and annoying kernel crash: ...
Mario Krenn's user avatar
  • 2,142
7 votes
3 answers
315 views

Kernel randomly aborting

Bug introduced in 10.0 and fixed in 10.3 So after 2 days of trying to figure out what's going on, I figure I should post here as I don't have enough knowledge about the Mathematica evaluation process ...
blueshift's user avatar
  • 313
0 votes
0 answers
43 views

Mathematica does not responding [duplicate]

These days, when I opened mathematica 10.4 in Windows 10, I even cannot type three characters, and it stucks. Yes, every time when I type the third number or character, it stops. I found that, even, I ...
Orders's user avatar
  • 1,227
9 votes
0 answers
259 views

Why would killing the kernel defreeze/unhang the front end?

My Mathematica front end will freeze occasionally for unreproducible reasons. This seems mostly associated with long (> 1 hour) computations, although not exclusively. If I click on the Mathematica ...
Jess Riedel's user avatar
  • 1,516
8 votes
1 answer
299 views

Determine how Mathematica was started

I have a notebook that I also execute as a m file on the command line. Depending on whether I run the notebook or the m file, I want to use slightly different commands. For example, ...
user19095's user avatar
  • 389
0 votes
1 answer
385 views

Why is Mathematica dying? [closed]

Example: ...
xhF731's user avatar
  • 329
4 votes
0 answers
158 views

Is there any way to see a kernel function's code? [closed]

I was using the extremely useful function PrintDefinitions from the GeneralUtilities package and I encountered this: ...
user5601's user avatar
  • 3,581
16 votes
2 answers
395 views

Global context seems to be shared between kernels when using Clear?

I am trying to understand the following behaviour, and determine if it's a bug in Mathematica 10. I am using Mathematica 10.3, and can't reproduce this behaviour under Mathematica 9. The test outlined ...
JonathanU's user avatar
  • 161
12 votes
1 answer
619 views

Handling Kernel start. What is a full initialization stack and what place the Autoload has there?

According to: tutorial/WolframSystemSessions Initialization On startup, the Wolfram Language kernel does the following: Performs license management operations. Runs Wolfram Language ...
Kuba's user avatar
  • 136k
13 votes
3 answers
936 views

Handling Kernel quit

One can use $Epilog to do something when the Kernel is quit or put an end.m file next to the ...
Kuba's user avatar
  • 136k
6 votes
2 answers
458 views

What causes the error NotebookEvaluate::nbnfnd?

Help says: NotebookEvaluate can take either a NotebookObject or a filename referencing a notebook file. therefore, I wonder why ...
mitochondrial's user avatar
1 vote
0 answers
460 views

Pitfalls of running multiple Mathematica kernels?

I've recently started running long calculations in one Mathematica kernel while I continue to work in another kernel. I thought this was safe, but yesterday I was running THIS CODE in which a ...
Jerry Guern's user avatar
  • 4,553
1 vote
1 answer
222 views

ParallelTable should distribute dedicated evaluation range to different kernels

I have 4 kernels and would like that in ParallelTable: ...
mrz's user avatar
  • 11.6k
2 votes
1 answer
360 views

ParametricPlot3D crashes Kernel when called repeatedly in loop

I have a parametric function surf[u,v]. It can be plotted successfully like this: ...
Alexander Erlich's user avatar
0 votes
1 answer
194 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 ...
VRPR's user avatar
  • 17
22 votes
1 answer
777 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 ...
Szabolcs's user avatar
  • 233k
2 votes
0 answers
157 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): ...
flagg19's user avatar
  • 211
2 votes
0 answers
273 views

License not released after kernel is stopped for KernelTimeLimit reached? [closed]

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: ...
flagg19's user avatar
  • 211
3 votes
0 answers
452 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, ...
an offer can't refuse's user avatar
3 votes
1 answer
162 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 ...
Jānis Erdmanis's user avatar
1 vote
1 answer
204 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. ...
an offer can't refuse's user avatar
20 votes
2 answers
2k 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 ...
M.R.'s user avatar
  • 31.2k
4 votes
2 answers
215 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 ...
Alan's user avatar
  • 13.6k
0 votes
0 answers
54 views

?f returns a weird result [duplicate]

Anybody know why something like this happens?
David's user avatar
  • 14.8k
3 votes
1 answer
172 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 ...
mr.tarsa's user avatar
  • 141
3 votes
0 answers
165 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 ...
vsht's user avatar
  • 3,487

1 2 3
4
5
7