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

Why does Mathematica 12.1 fail to launch available parallel kernels

I am running Mathematica 12.1 on Windows 10 Enterprise from a local PC with 24 cores using a remote site licence from my University. Under Parallel Configuration I have requested 24 local kernels (...
0
votes
0answers
27 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 ...
1
vote
0answers
31 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 ...
2
votes
0answers
31 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 ...
1
vote
1answer
41 views

How to collect results from compiled function in ParallelEvaluate?

I am using Mathematica 12.x and have a compiled function, returning many things. I would like to run several instances of this compiled function, one for each core of my CPU, and then collect all of ...
2
votes
1answer
105 views

Kernel crashes trying to execute NDSolve

I am trying to solve an energy functional equation using Mathematica's NDSolve function, but the kernel is temperamental. It almost always crashes after a second of ...
3
votes
1answer
111 views

Running Mathematica on a Remote Machine (using frontend and ssh)

I've been trying to run my Mathematica code on a remote machine. I'm using Windows and the remote machine is a Linux machine. I write a notebook on my local machine, convert it to a .m file, and use ...
1
vote
0answers
33 views

Standalone Kernel No input available

I have encountered the same problem as the thread attached. Mathematica stuck in "running" for every calculation I attempt, kernel error However, when I try to launch a standalone kernel ...
0
votes
0answers
42 views

If the Mathematica is running the code in one kernel, how can I run another code in other kernel? [duplicate]

If one kernel (with KernelID 1) is running the code which will take a long time, how can I run another code in other kernels (KernelID 2) in the process?
1
vote
0answers
53 views

No output after memory constrained short computation using 'Solve'

I am trying to solve a system of nonlinear equations symbolically using Solve. The input runs for only ~30 seconds, then my syntax highlighting goes black, and there is no output: Does this mean my ...
1
vote
0answers
41 views

What does it mean when $MaxLicenseProcesses returns Infinity?

I am learning how to use Mathematica on a cluster, and a lot of this stuff is still way over my head. Please let me know if I am missing any crucial details. The cluster uses Linux and uses Lmod to ...
0
votes
0answers
70 views

Mathematica stops working with no warning/error

I have some long computations on my Mathematica notebook. For some reason they stop and Mathematica gives me no reason as to why. No warning. No erros. If run the "Initialization Lines" (...
2
votes
2answers
88 views

What is the cheapest method to get cloud computing, remote kernels, HPC access, connection to clusters or GPUs?

I want to be able to run parallelisable tasks quicker and on better hardware. Are there any services that can easily do this with my personal copy of Mathematica?
8
votes
1answer
183 views

Kernel starts up very slowly on Linux

V 12.1.1, starting a kernel, e.g. by entering wolframscript in the shell, takes an unexpectedly long time (~5 min, the time elapsed between pressing Enter and the ...
6
votes
2answers
115 views

Choose the number of kernels used by ParallelTable

By default, on my system, ParallelTable uses 4 kernels. Is it possible to change the number of kernels used, for example using only 3 instead of 4?
0
votes
0answers
98 views

Create keyboard shortcut to quit the kernel

I would like to reset all my user-defined symbols using a keyboard shortcut. I believe the mouse-activated command is Evaluation->Quit Kernel. How can I do this without having to use the mouse?
4
votes
0answers
97 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` ...
2
votes
0answers
79 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 ...
0
votes
0answers
27 views

Does Remove[“Global`*”] on one kernel clear definitions and functions on another kernel?

While I was running a quite long evaluation on one kernel(kernel 1), I executed Remove["Global`*"]; on the other kernel(kernel 2). How will this affect my current evaluation on kernel 1? Will it ...
0
votes
0answers
47 views

Piecewise function and NDSolve [duplicate]

I'm trying to solve a system of differenial equations involving a piecewise function with NDSolve. I tried to define this function using Piecewise but the kernel ...
1
vote
0answers
30 views

How to close a specific Kernel after completion of evaluation in ParallelDo

I have a particular code that I have to run over several different parameters. I am using ParallelDo to parallelize the process. Due to the nature of the evaluations some Kernels finish the ...
0
votes
0answers
33 views

Closing sleeping kernels in parallel computation

I want to close the kernels which have completed their jobs in parallel computation. I have a test code as following: ...
0
votes
0answers
42 views

Parallel Computation: Kill kernels which have completed the jobs while others keep running

I launch 20 parallel kernels in the background using nohup math -run "<<file.m" &> file.out The nature of computation is integration over various ...
3
votes
0answers
59 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....
4
votes
1answer
161 views

How to set up Wolfram Language cluster with only the command line interface

I'd like to set up a cluster of WL nodes without using the notebook user interface. Everything I've seen about how to set up a WL remote kernel talks about how to configure the remote kernel by going ...
2
votes
0answers
198 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 ...
2
votes
0answers
96 views

Why does this memoized function cause the kernel to quit? [closed]

The following memoized recursive function causes the kernel to beep and quit. ...
2
votes
0answers
38 views

Is there a function that reverts or undoes the effects of Needs? [duplicate]

Needs is used to load packages. Is there a function that cleans all the Definitions and ...
2
votes
1answer
117 views

Mathematica Won't Recognize a MeshRegion

I've implemented the code in the top answer of this question on the Plateau problem in differential geometry, and it works with the example shown in Example 1, so there is nothing wrong with the code. ...
13
votes
1answer
384 views

VideoPlay crashes the Kernel with Mathematica 12.1

I'm using Mathematica 12.1 on windows 10 (Microsoft Windows [Version 10.0.16299.1686]) When going to the Help file about VideoPlay I tried the standard example and it crashes the Kernel. For me it'...
0
votes
0answers
35 views

After execution of simple list manipulation every expression turns dark blue and nothing is defined - how to debug

This question is related to this one in the sense that it uses the code from there. What happens is best illustrated in the video here. When I run (* part 1 *) ...
2
votes
0answers
29 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 ...
7
votes
1answer
109 views

Cannot remove configured kernels in version 12.0

Bug introduced in 12.0 I have defined the settings of a new remote kernel from Kernel Configuration Options in a MacOS machine. But the specification have a mistake and I need to redefine. When I ...
3
votes
1answer
43 views

How to get KernelID in from KernelObject?

In a nutshell, how can I get this number: I'm having trouble because $KernelID isn't a function and the FullForm is this crazy thing: Motivation: After you call ...
1
vote
0answers
51 views

How do Mathematica processes DynamicBox? [closed]

I've heard that Mathematica uses a session ad hoc to process DynamicBox, but I don't know any detail. I am using DynamicBox in ...
4
votes
1answer
115 views

Deleting a specific In[ ] / Out[ ] pair

I recently found that the CleanSlate package allows you to free memory without restarting the Wolfram kernel. The CleanSlate package includes the ClearInOut, which ...
-3
votes
1answer
178 views

How to use deep clones in Mathematica [closed]

Is there a way to use deep clones in Mathematica? Maybe by making lots of different kernels. In order to execute multiple notebooks I need more than one kernel, is there a way to make them using C# ...
0
votes
0answers
65 views

Can't modify “Kernel Configuration Options”

Immediately after adding a kernel using the Evaluation --> Kernel Configuration Options, I cannot further modify the list of kernels in that configuration panel (...
4
votes
0answers
54 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 ...
8
votes
0answers
176 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 ...
10
votes
2answers
655 views

Using Terminal` (ASCII plots) in Wolfram 12

I was interested in exploiting the Terminal` package, as demonstrated in this post, to show some ASCII plots straight through the terminal of my Raspberry Pi Model 3 B+. However, it doesn't seem that ...
0
votes
0answers
89 views

Readable formula output on command line

I was trying to solve some differential equations. Mathematica is a little expensive to me, so I went for the free Wolfram Engine for Developers. It is said that the engine offers the full power of ...
0
votes
0answers
38 views

SingularValueDecomposition crashes kernel?

Consider the following simple example (Windows 10, MA 11.3) mat = Table[RandomReal[], {i, 1, 2000}, {i, 1, 2500}]; {u, ww, vt} = SingularValueDecomposition[mat]; ...
7
votes
1answer
93 views

Why call to StreamPlot terminates kernel each time?

FYI, reported to WRI [CASE:4288967] By mistake, I put x range starting from negative to make StreamPlot for expression with ...
11
votes
1answer
152 views

Why does args symbol exist in a fresh kernel?

In fresh kernel Mathematica 11.3 (Linux) asking for args (similarly for dims) I obtain ??args Global`args As far as I ...
1
vote
0answers
30 views

Kernel runs continously with Manipulate Block inside Package, not notebook

I recently moved an Manipulate block from a notebook to a package (.m file). The original manipulate called functions from the package in the form of Package`f(x) and was used in the Manipulate. The ...
2
votes
0answers
60 views

Kernel crash when Saving/Get ing big files

I have been experiencing crashes in Mathematica 11.0.1 on a machine at work. I've tracked down the problem to when Mathematica is either using Save[fileName] or <...
1
vote
0answers
132 views

Surprise: I don't need a new kernel to make to MMA notebooks independent [closed]

People seem to suggest that one needs to start a new kernel to keep multiple Mathematica (MMA) notebooks independent e.g. Kernel management link. But I did not do so and still found my two notebooks ...
1
vote
0answers
71 views

Using WSTP to connect a C process to local and remote kernels simultaneously [closed]

Is it possible for a C program to communicate (via WSTP) with both a Mathematica kernel running on its machine, and a remote one? For context: I use a local Mathematica kernel which talks to a remote ...
1
vote
0answers
99 views

How to use two or more kernels in the same notebook frontend?

Is there a way to connect the notebook front end to both kernels, 11.3 and 12.0 at the same time. So I can run certain commands in older version. It would be nice to have a way to run certain cells ...

1
2 3 4 5
7