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
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 ...
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 ...
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. ...
4 votes
2 answers
118 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 ...
2 votes
1 answer
136 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 ...
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 ...
1 vote
0 answers
62 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 ...
3 votes
1 answer
34 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 : ...
2 votes
1 answer
51 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 ...
4 votes
3 answers
121 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 ...
1 vote
0 answers
150 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 ...
0 votes
2 answers
2k views

How to change the MATHEMATICA_USERBASE directory

I’ve found, from reading the help on MathKernel in the help system and in a number of questions here, that to make that change in Windows at least one apparently needs to enter “MathKernel … options” ...
1 vote
0 answers
44 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 ...
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 ...
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 ...
2 votes
1 answer
62 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: ...
0 votes
0 answers
43 views

TimeConstrained[] Not working

Is there a way to force the kernel to quit if some code runs for x seconds? Currently, I have: ...
2 votes
1 answer
158 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, ...
1 vote
0 answers
69 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 ...
1 vote
1 answer
54 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 ...
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!
2 votes
1 answer
160 views

WSTP connection does not connect on windows

I am new in mathematica programming. Actually referring this link, I tried to connect to kernel from c++ program on Windows with visual studio. I copied all these .exe files in related folder which i ...
1 vote
0 answers
97 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....
0 votes
0 answers
42 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 ...
0 votes
0 answers
100 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 <...
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 ...
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 ...
9 votes
3 answers
966 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 ...
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 ...
0 votes
0 answers
162 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 ...
1 vote
0 answers
49 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 ...
0 votes
1 answer
78 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 ...
1 vote
2 answers
275 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 ...
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 ...
2 votes
0 answers
349 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) ...
0 votes
0 answers
111 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 ...
3 votes
1 answer
582 views

What does this error communication mean?

Few days ago, executing the command ...
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 ...
0 votes
0 answers
316 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? ...
4 votes
1 answer
116 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 ...
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}] ...
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: ...
2 votes
1 answer
92 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 "...
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{...
1 vote
1 answer
78 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 ...
1 vote
1 answer
107 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 ...
2 votes
1 answer
86 views

CurrentScreenVideo function

Does anybody know if Wolfram is looking into creating a function that can record you screen video. Preferably regions AND active windows and such so I don't have to buy additional software to do that. ...
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: ...
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 ...
1 vote
1 answer
101 views

Mathematica Kernel Aborting With ComplexPlot

I am trying to run the following line: ...

1
2 3 4 5
7