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
6 votes
0 answers
96 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
  • 15.9k
2 votes
0 answers
70 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,549
2 votes
1 answer
89 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,460
4 votes
2 answers
107 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
117 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
  • 2,943
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 ...
Nasser's user avatar
  • 135k
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 : ...
Franck's user avatar
  • 381
1 vote
0 answers
118 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's user avatar
  • 115
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 ...
Fabrizio Nesti's user avatar
2 votes
1 answer
49 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,087
1 vote
0 answers
43 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 ...
user84456's user avatar
  • 1,492
3 votes
0 answers
72 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,010
2 votes
0 answers
86 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
59 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
39 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
156 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,037
1 vote
0 answers
65 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
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 ...
Daniel Castro's user avatar
1 vote
0 answers
95 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
41 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
  • 1,993
0 votes
0 answers
95 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
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
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
9 votes
3 answers
891 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
  • 4,962
3 votes
0 answers
270 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
0 votes
0 answers
146 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,688
1 vote
0 answers
47 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,549
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 ...
Jules Manson's user avatar
  • 2,397
1 vote
2 answers
259 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
320 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
104 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
246 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
106 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,549
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
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
4 votes
0 answers
69 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
  • 753
0 votes
1 answer
109 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
  • 1
2 votes
1 answer
90 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
77 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,137
1 vote
1 answer
104 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
  • 553
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. ...
Lou's user avatar
  • 3,812
1 vote
1 answer
100 views

Mathematica Kernel Aborting With ComplexPlot

I am trying to run the following line: ...
joejoejoejoe4's user avatar
3 votes
1 answer
560 views

What does this error communication mean?

Few days ago, executing the command ...
user64494's user avatar
  • 23.2k
2 votes
1 answer
154 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 ...
Azzurro94's user avatar
  • 499
3 votes
0 answers
212 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
0 votes
0 answers
44 views

Kernel crashes on invoking Python prompt

Apologies if this is a naive question. A typing error keeps crashing the kernel. My typing error is to start a line with ">", unintentionally invoking Python. The problem is that this ...
user46831's user avatar
  • 633
1 vote
0 answers
146 views

Kernel failing to connect to the frontend

I've been using Sakra's tunnel https://github.com/sakra to try to connect my mathematica in Linux to the server of my university. The problem being that even though the SSH connection works well in ...
Yannick Gullentops'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,549

1
2 3 4 5
7