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
0 votes
2 answers
76 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,670
2 votes
1 answer
30 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
71 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
  • 499
1 vote
1 answer
83 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
92 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
56 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,798
1 vote
2 answers
146 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
  • 21
2 votes
0 answers
42 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
142 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.5k
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,670
4 votes
1 answer
122 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,530
4 votes
2 answers
159 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
2 votes
1 answer
318 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
  • 61
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,003
1 vote
0 answers
67 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
  • 145k
3 votes
1 answer
41 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
  • 391
1 vote
0 answers
210 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
52 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,245
1 vote
0 answers
80 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,446
3 votes
0 answers
78 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,334
2 votes
0 answers
107 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
67 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
45 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
173 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,295
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
55 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
111 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
44 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
111 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
70 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,827
4 votes
0 answers
401 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,246
0 votes
0 answers
203 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,728
1 vote
0 answers
51 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,670
0 votes
1 answer
79 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
310 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
441 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
141 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
50 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
433 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
131 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,670
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
202 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
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
0 votes
1 answer
111 views

With Intel Xeon(R) E5-2667 v4 and 250GB RAM: still automatically quitting kernel when doing symbolic integrations

[![Here is the configuration for my calculation. Guess it can't be affected by this.][1]][1] I was in trouble when solving the algebraic equations for q1 and q2. \begin{equation}\label{eq:18} \begin{...
Josh's user avatar
  • 31
2 votes
1 answer
94 views

AceFEM: MIEL example aborts for many load steps

I am currently using AceFEM version 7.303 and Mathematica 12.2 but had the same problem with other versions before. My laptop as well as the server I use work with Linux. When I run the example "...
Simon M.'s user avatar
1 vote
1 answer
84 views

Quit Mathematica script (no matter what)

I have a complicated script (not just written by me) that gets called using MathKernel -script script.m. Among others script.m ...
Kvothe's user avatar
  • 4,491
1 vote
1 answer
125 views

Re-evaluating the notebook takes long time after doing `Quit`

I have a code. After Quit, I want to re-evaluate the notebook. It takes about 10 seconds to start the re-evaluation in Windows 10. But my friend uses Macbook. It ...
1_student's user avatar
  • 635

1
2 3 4 5
8