Skip to main content

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
0 answers
48 views

Independent and interdependent notebooks

My Mathematica 11.2 home edition license under Windows 10 allows only for two independent notebooks/processes at a time. Is this what the Mathematica license calls "2 Frontends"? Does this ...
Roland Salz's user avatar
0 votes
1 answer
25 views

Setting shared function values in parallel is running sequentially

I am trying to define a function whose values can be updated across different Kernels running in parallel, where each Kernel might have to use values defined by other Kernels previously in the process....
BioPhysicist's user avatar
  • 1,146
0 votes
0 answers
32 views

Parallelization with Do and ParallelSubmit

I have quite a large expression that I need to integrate. My ansatz was to Expand the expression (easiest case results in ~5.5 million terms) and parallelize the ...
infinitezero's user avatar
  • 1,441
0 votes
0 answers
22 views

Relaunch failed kernels at runtime

I'm running a local calculation that takes around 4 days to complete. After the first time, I noticed that it started on 16 kernels but subsequently some of those kernels failed (and the workload was ...
infinitezero's user avatar
  • 1,441
0 votes
2 answers
81 views

Need help to understand subtle difference using Replace in Association

Consider these two rules, which I initially considered as equivalent. Now I use rulesPlusMultScalarAssociationA as a "bug fix" in my code and use it instead of my "buggy" ...
Acus's user avatar
  • 3,680
2 votes
1 answer
64 views

Not able to use multiple notebook at a time

I have recently shifted to Macbook Pro M3 and having problem in running multiple notebook at a time. In Ubuntu I could open as many notebook as I want directly by clicking the notebooks. Now in Mac, ...
user98564's user avatar
2 votes
0 answers
73 views

Changes in the kernel across versions

I was going through the Power programming book by David Wagner, and I tried: ...
Felipe's user avatar
  • 669
1 vote
1 answer
88 views

How to show all bandwidth in adaptive bandwitdh KDE?

I have implemented the KDE distribution finding for a dataset. I apply the adaptive bandwidth method; I want to plot the change in bandwidth over the entire distribution. How can I do it? Thank you!
Tin Trung Chau's user avatar
2 votes
0 answers
128 views

ParallelTable does not execute in parallel

I would like to construct a Table in Parallel in Mathematica. However, it only uses one Kernel for the calculation, the others run idle. My code looks like this (I will remove a big chunk of the ...
Julpe's user avatar
  • 21
0 votes
0 answers
57 views

Is loading several packages in the same cell safe, or it may cause probems?

My Mathematica 13.3 crashed after working 30 minutes. It produced a beep and no output. After that, it lost the capability of loading packages. I will reinstall it now. I wonder if this happened to ...
florin's user avatar
  • 1,982
1 vote
2 answers
151 views

Mathematica kernel dies

When I run the following code, the kernel dies. I have tried making a new kernel, but that also does not work. The memory usage never crosses 33% of the total RAM available. I have no clue how to fix ...
Lelouch's user avatar
  • 141
2 votes
0 answers
43 views

How can I cap calculation speed?

Sorry if I wasn't able to find an existing answer! I'm trying out Mathematica, and was running through some sample problems at night. My roommate is sleeping, and my computer fan can get decently loud....
L Lord's user avatar
  • 21
6 votes
0 answers
152 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.6k
3 votes
0 answers
79 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,680
6 votes
2 answers
180 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,620
4 votes
2 answers
198 views

Automate quitting and restarting Kernel while doing Evaluate Notebook

I have multiple notebooks open, with similar variable declaration (am studying test cases), and I want all notebooks to be independent of each other, and also forget it's own evaluation after ...
ZeroTwo's user avatar
  • 143
3 votes
1 answer
432 views

Mathematica can't communicate with subkernels

i was working some huge matrices in the context of FEM, so sometimes it seems they were too big and the kernel crashed. Normally that isn't a problem, but after one time i couldn't connect to the ...
cmh99's user avatar
  • 91
0 votes
0 answers
20 views

Best practice to persist symbols between sessions and a problem with $Epilog [duplicate]

I often define functions like this in my notebooks: ClearAll[f]; f[a_, b_, c_] := f[a, b, c] = f[b, a, c] = somethingExpensive[a, b, c] where I use memoization to ...
JEM_Mosig's user avatar
  • 3,033
2 votes
0 answers
80 views

How to automatically open/create/run each notebook using its own kernel?

I am not asking question such as new kernel for notebook where one needs each time to explicitly create and name new kernel, then again issue a command in the notebook to use that named kernel. This ...
Nasser's user avatar
  • 149k
3 votes
1 answer
48 views

Parallel Kernel inheritance problem for Protect

for the following program: Unprotect[Power]; Power[0, 0] = 1; Protect[Power]; ParallelTable[0^0, {4}] I have the following result: (kernel 1) Power::indet : ...
Franck's user avatar
  • 421
1 vote
0 answers
264 views

Mathematica does not recognize all CPU kernels/cores [closed]

I am using Ubuntu 22 and Mathematica 13. According to the description of my laptop I should have four CPU cores, as seen in the following screenshot: However, Mathematica only seems to recognize two ...
Philipp Strasberg's user avatar
4 votes
3 answers
126 views

How to evaluate EXPR in a subsession of a different already running kernel and get the output?

Is there a way to evaluate some expression in a subsession of another already running kernel, collecting the output, from a Local monitoring kernel? Something like ...
Fabrizio Nesti's user avatar
2 votes
1 answer
54 views

Aborting the loop using external events

If we run one Wolfram Kernel (Wolfram Engine) there is one thread we can use While[True, doSmth; Pause[0.1]; ]; since there is a sort of interruption ...
Kirill Vasin's user avatar
  • 1,365
1 vote
0 answers
101 views

How to configure and acess Remote Kernel step-by-step?

I want to access a kernel from another computer. However, I have no idea how to set up the remote kernel and how to access it. I have gone through a lot of articles on this website and others, but ...
user444's user avatar
  • 2,688
3 votes
0 answers
79 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,410
2 votes
0 answers
112 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
1 answer
69 views

Why does the console REPL parse input differently from ToExpression?

In the console REPL, we can see that input is parsed in a certain way, that is not equivalent to simply calling ToExpression on the input string. From math.exe using Mathematica 13.1: ...
Walhiskaz's user avatar
0 votes
0 answers
52 views

TimeConstrained[] Not working

Is there a way to force the kernel to quit if some code runs for x seconds? Currently, I have: ...
burntclaw's user avatar
2 votes
1 answer
176 views

How do I know which kernel is handling which .nb file? [closed]

OS : window 10 Mathematica : v12.2 By my mistake, I opened another mathematica kernel, not knowing a kernel was already running. I created a lot of .nb files and worked on them in another kernel, ...
imida k's user avatar
  • 4,325
1 vote
0 answers
75 views

How to determine why Mathematica killed an evaluation and cleared all variables? [closed]

I am curious if Mathematica stores a system log somewhere or if there is a way to set up my notebook such that it details why Mathematica silently kills an evaluation and clears all variables in the ...
pluie's user avatar
  • 11
1 vote
1 answer
56 views

Unexpected quitting of the kernel when discretizing parametric region

I have a region defined parametrically (-actually the union and difference of several ones), and when I try to discretize it Mathematica suddenly quits the kernel, as show in the picture below (I'm ...
Daniel Castro's user avatar
1 vote
0 answers
124 views

Execute wolfram command from java & j/link along with set of variables [closed]

I have been trying to execute some expression/formula which may have multiple variable, and I want to set values(like how we do on kernel command tool). We are using J/Link to connect kernel from java....
Oviyan's user avatar
  • 11
0 votes
0 answers
46 views

Remote kernel works in terminal but not in Notebook

I am using a Mac OS 12.2.1 computer that's trying to connect to a remote kernel in a Windows 10 computer. I am able to connect to that computer via ssh in terminal. Inside the terminal, I can launch a ...
t-smart's user avatar
  • 2,031
0 votes
0 answers
118 views

FullSimplify crashes kernel

I'm trying to simplify an enormous analytic expression as much as possible. When I use Simplify, I get a half-decent result in about 20 seconds. However when I use <...
Arturo don Juan's user avatar
4 votes
0 answers
72 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
6 votes
2 answers
93 views

Error message not reproduced at reevaluation, SetDelayed cache?

Mathematica v13.0: nr:=HoldForm@Evaluate@Function[t,x@t][] then evaluate ...
Pierre ALBARÈDE's user avatar
10 votes
3 answers
1k views

How to clear up RAM without exiting kernel?

I am trying to implement the code which generates some table, works with it, extracts some numbers, add them to some other table, then clears the table (only the table and not the other elements of ...
John Taylor's user avatar
  • 5,913
4 votes
0 answers
432 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,258
0 votes
0 answers
235 views

Best way to run multiple calculations simultaneously?

I feel this question probably has been asked before, but I can't find a thread with a clear enough answer. Let me know if you can help locate anything useful. As the title suggests, I want to run ...
xiaohuamao's user avatar
  • 4,738
1 vote
0 answers
53 views

How module checks if syntax is correct?

I would like to understand the following module subtlety. Consider two seemingly equivalent instances Module[{temp}, Sequence[x, x]] (Module::argrx: Module called ...
Acus's user avatar
  • 3,680
0 votes
1 answer
82 views

How to count Kernel evaluations then call a function on every nth evaluation

On every nth (2) evaluation autoEval should invoke a function check[]. The thing which is supposed to listen for all ...
Jules Manson's user avatar
  • 2,467
1 vote
2 answers
329 views

Mathematica: How can I solve the problem "The Kernel Local has quit (exited) during the course of an evaluation"

I am using a Mac Book with Monterey and 16GB RAM for a calculation with 2 nested For loops. I am relatively new to Mathematika and still trying to learn the language properly, so I hope the problem is ...
Stealth Frosch's user avatar
2 votes
0 answers
500 views

Mathematica 12.3 won't launch. Freezes on 'opening welcome screen' and turns off [closed]

Mathematica 12.3 won't launch. Freezes on 'opening welcome screen' and turns off. Mathematica Kernel works properly. Specifications: Version: 12.3.1 for Microsoft Windows (64-bit) (June 24, 2021) ...
jgeb's user avatar
  • 21
0 votes
0 answers
164 views

How can we tell if an evaluation has corrupted or is still on-going properly?

I was trying to evaluate a NDSolveValue function of mathematica, but it is taking excessively long time (~30 min) now. I am not sure if I shall leave it alone or quit the kernel. Is there a general ...
Rescy_'s user avatar
  • 53
0 votes
0 answers
51 views

Is it possible to run kernel in address space of another process?

Kernel executables seem to be relatively small wrappers around "dynamic link library" that contains all the functionality of the kernel. Is it possible to load the kernel (as a dynamic link ...
Pavel Perikov's user avatar
0 votes
0 answers
493 views

how to run multiple notebook at the same time using multiple kernels

My problem is that the second notebook file opens but waits for the first notebook to be evaluated. I want to execute both file1.nb and file2.nb at the same time. Here is my code. any idea? ...
Mohammad Shahbazi's user avatar
4 votes
1 answer
139 views

How to add new coordinate chart?

I want to add my own coordinate system to existing CoordinateChartData[All], which would mimic the standard functionality as much as possible. As a simple work ...
Acus's user avatar
  • 3,680
0 votes
0 answers
51 views

Using generalized hypergeometrics in RegionPlot hangs the Kernel

This simple code, is just an example, hangs the kernel: RegionPlot[ x + y + HypergeometricPFQ[{1, 2.5, 3.1}, {4.65, 3.28}, 0.2] > 0, {x, -1, 2}, {y, -2, 3}] ...
Leandro Lanosa's user avatar
5 votes
0 answers
203 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
  • 413
4 votes
0 answers
75 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

1
2 3 4 5
8