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.

104 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
17 votes
0 answers
4k 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 ...
Nam Nguyen's user avatar
  • 1,751
9 votes
0 answers
206 views

The most bizarre kernel crash ever. Kernel crash in Integrate under simple different setups. Unable to find cause

Reported to WRI. CASE:4330461 V 12 on windows 10 64 bit. Note: This problem do not show up in V 11.3. Only in V12. For the last 2 hrs, I've been trying to zoom into why V12 kernel crash when ...
Nasser's user avatar
  • 137k
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
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
7 votes
0 answers
485 views

How can I create a REPL for Mathematica in Sublime Text

I would like to be able to interact with Mathematica command line interface from within Sublime Text. Sublime Text has a package called Sublime REPL that provides an interface for different ...
Nima's user avatar
  • 71
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
6 votes
0 answers
115 views

ListLinePlot in Version 13.3.0 causes the kernel to stop

Bug introduced in 13.3.0 or earlier and persisting through 13.3.1 or later I have upgraded to version 13.3.0. I find that when I plot a data set using ListLinePlot ...
Hugh's user avatar
  • 16.1k
6 votes
0 answers
131 views

Why do some uses of PropertyList crash the kernel?

Bug introduced in 10.1.0 or earlier and fixed in 12.1.0 While looking at the question How to evaluate the "Domain" of an InterpolationObject? I noted that using ...
gwr's user avatar
  • 13k
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
6 votes
0 answers
777 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: ...
physicien's user avatar
  • 407
6 votes
0 answers
210 views

In .NET/Link, how do I not open multiple kernels?

I'm writing an ASP.NET page intended for multiple users. On the backend we have datatypes that are primarily mathematical, and interact with Mathematica for string-to-double evaluations, among others....
Twiffy's user avatar
  • 369
5 votes
0 answers
200 views

How to allow one process to take advantage of all available cores while other processes run in parallel?

I have to run multiple tasks simultaneously: Data download from stock exchange during live market session and append it to a global variable. Process the data by taking the data from the front of the ...
csk 7's user avatar
  • 403
5 votes
0 answers
128 views

Using ASCII plots in Terminal in version 12.1

This question was asked before for version 12 but unfortunately the provided patch doesn't work anymore for version 12.1. Using Terminal` (ASCII plots) in Wolfram 12 I was trying to use the Terminal` ...
Philipp's user avatar
  • 726
5 votes
0 answers
97 views

Run computation in separate process and kill it after a time limit

I am looking for a solution to run a Mathematica calculation in a separate process (separate kernel) and cancel the computation after a given time. If it cannot be cancelled, then just kill that ...
Szabolcs's user avatar
  • 233k
5 votes
0 answers
1k views

ParallelTable::nopar: No parallel kernels available; proceeding with sequential evaluation

I am trying to use a the following code: ...
mattiav27's user avatar
  • 6,557
5 votes
0 answers
188 views

Mathematica Kernels in a remote machine via port forwarding and no public password

I would like to launching Mathematica kernels on a remote machine. Port forwarding is required to connect to this machine. I usually need to connect to a machine via ssh port forwarding and then in ...
Galuoises's user avatar
  • 523
5 votes
0 answers
505 views

Why FrontEnd`KernelExecute doesn't work in KeyEventTranslations.tr?

Which commands can you put in KeyEventTranslations.tr ? There is an extensive list of FrontEndTokens, but what else can you use? Why something like this doesn't ...
Vladimir's user avatar
  • 1,473
4 votes
0 answers
69 views

Area mapped over list of 2 polygons crashes kernel depending on order

I have a list of 2 Polygon objects (see below for the list polys and a visualization). They are all seem valid. Still, when I ...
Tom Verhoeff's user avatar
4 votes
0 answers
70 views

On auto-limiting memory and other resource usage

I play fast and loose with my evaluations, so try to calculate something much too large at least once a day. Life has gotten a lot easier ever since I started setting: ...
Trev's user avatar
  • 763
4 votes
0 answers
106 views

Launching kernels... freezes

I'm running a Mathematica script on a remote machine (via ssh connection). I log on the machine and I execute math -script algorithm.m and this message appears ...
Luthien's user avatar
  • 185
4 votes
0 answers
327 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 ...
user565739's user avatar
  • 1,109
4 votes
0 answers
1k 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 ...
shda's user avatar
  • 253
4 votes
0 answers
197 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 ...
Mike's user avatar
  • 250
4 votes
0 answers
1k 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. ...
bill s's user avatar
  • 68.3k
3 votes
0 answers
73 views

Maximum number of concurrent notebooks

I am running MMA v13.2 on Windows 10, x86. If I open two different notebooks, everything is fine. Try opening a third and it displays Of course, the operation fails because the software is already ...
Moo's user avatar
  • 3,044
3 votes
0 answers
314 views

How to allocate more physical memory to Mathematica?

My MacBook Pro (2019) has 32 GB of memory, but when I work with a large array reaching 1 GB of storage, the Mathematica Kernel only gets a little more of 1 GB, but gets allocated a lot of virtual ...
hippo3773's user avatar
  • 1,216
3 votes
0 answers
228 views

Mathematica Kernels and CPU cores

I want to use an 8 kernel Mathematica 12.2 version. Does a core i7 CPU with 4 cores and 4 threads fully utilize the benefit of the 8 kernels or an 8-core CPU is needed?
Arash's user avatar
  • 31
3 votes
0 answers
120 views

How to use the old kernel in a newer version of MMa

I am used to the conveniences of MMA 11.3 such as: can undo some times, autocomplete codes, and so on, however I have to run some functions in the version 5.2. So I installed Mathematica V11.3 and V5....
likehust's user avatar
  • 663
3 votes
0 answers
86 views

Problem exporting vector graphics (PDF) in Mathematica Notebook Front-End using remote kernel on linux

I'm not being able to export vector graphics images (especially PDF) in a Mathematica Notebook Front-End in Windows 8.1 using a remote kernel on a Linux server. I can, however, export Raster Image ...
Eleteroboltz's user avatar
3 votes
0 answers
155 views

Launching Mathematica 11 kernel through double SSH

I'm trying to connect to a server in my university to do some computations. The problem is that I first need to login to one server through SSH and then from this one go to the "computation" server (I ...
Caims's user avatar
  • 432
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
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
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
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
3 votes
0 answers
499 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. ...
heropup's user avatar
  • 2,092
3 votes
0 answers
620 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 ...
Wizard's user avatar
  • 2,700
2 votes
0 answers
75 views

Why global name context in 13.3 is not empty?

Today I tried 13.3.0 and immediately find that global name context again is not empty, i.e. ...
Acus's user avatar
  • 3,559
2 votes
1 answer
98 views

Recovering results during front-end hang

When working with large expressions I sometimes mistakenly ask Mathematica to show some output which causes the front end to hang. Sometimes it just needs to format notebook contents but sometimes, it ...
Gert's user avatar
  • 1,470
2 votes
0 answers
94 views

Restart kernel after each evaluation in Table

I am trying to integrate a two-dimensional function purely numerically. For one coordinate the integrand can oscillate rapidly while for the other coordinate the integrand is not behaving in a special ...
Phenoxim's user avatar
2 votes
0 answers
36 views

Why kernel quits when trying to FullSimplify Piecewise with default Nothing value?

I found that kernel of In[1]=$Version (*"12.1.1 for Linux x86 (64-bit) (June 19, 2020)"*) quits when trying to FullSimplify a simple piecewise ...
Acus's user avatar
  • 3,559
2 votes
0 answers
194 views

Aborting any computation that takes too long

One of the biggest annoyances in Mathematica is that it will often hang up without any way to abort (i.e. Alt + . or other methods can't stop the computation). Is ...
Kvothe's user avatar
  • 4,187
2 votes
0 answers
359 views

Kernel crash after repeated use of NDSolve

I am trying to solve the Einstein-Klein-Gordon system (equations below) for different piecewise potentials but the kernel keeps crashing after repeated use of NDSolve. Apparently, everything works ...
Golan's user avatar
  • 21
2 votes
0 answers
38 views

Remote kernel lost internet connection

I'm running a calculation on a remote kernel and the internet connection is interrupted. When it recovered, all definitions were lost on the front end. Does the kernel on the remote machine ...
arax's user avatar
  • 1,831
2 votes
0 answers
158 views

How can I exit a specific kernel?

According to the documentation, the following are true: The Exit[] command "terminates a Wolfram Language kernel session." The ...
Shredderroy's user avatar
  • 5,117
2 votes
0 answers
149 views

Export cdf does not work in MathKernel command line

I am using Mathematica through command line MathKernel. I am not trying to draw any graphics in the console. But I should be able to export things a CDF. Why can't ...
Neel Basu's user avatar
  • 961
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
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
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
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