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
1 answer
55 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 ...
HaloArchive's user avatar
2 votes
1 answer
153 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 ...
shanedrum's user avatar
  • 557
3 votes
1 answer
1k 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 ...
Tbone Willsone's user avatar
1 vote
0 answers
44 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 ...
may14's user avatar
  • 11
0 votes
0 answers
47 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?
keanhy14's user avatar
  • 469
1 vote
0 answers
63 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 ...
cedarfootsteps's user avatar
1 vote
0 answers
167 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 ...
BioPhysicist's user avatar
0 votes
0 answers
440 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" (...
João Viana's user avatar
4 votes
2 answers
308 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?
Robjobbob's user avatar
  • 321
9 votes
1 answer
308 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 ...
Αλέξανδρος Ζεγγ's user avatar
9 votes
2 answers
841 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?
mattiav27's user avatar
  • 6,557
0 votes
0 answers
524 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?
Anna Naden's user avatar
5 votes
0 answers
128 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` ...
Philipp's user avatar
  • 726
2 votes
0 answers
194 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 ...
Kvothe's user avatar
  • 4,187
0 votes
0 answers
58 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 ...
Andeanlll's user avatar
  • 393
0 votes
0 answers
57 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 ...
Golan's user avatar
  • 21
1 vote
0 answers
34 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 ...
Roopayan Ghosh's user avatar
0 votes
0 answers
77 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: ...
Divyajyoti's user avatar
0 votes
0 answers
103 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 ...
Divyajyoti's user avatar
3 votes
0 answers
120 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....
likehust's user avatar
  • 663
4 votes
1 answer
591 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 ...
Sean Lynch's user avatar
  • 1,079
2 votes
0 answers
359 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 ...
Golan's user avatar
  • 21
2 votes
0 answers
133 views

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

The following memoized recursive function causes the kernel to beep and quit. ...
qwr's user avatar
  • 403
2 votes
1 answer
179 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. ...
A. Thomas Yerger's user avatar
13 votes
1 answer
411 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'...
Lou's user avatar
  • 3,812
0 votes
0 answers
58 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 *) ...
atapaka's user avatar
  • 3,733
2 votes
0 answers
38 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 ...
arax's user avatar
  • 1,831
7 votes
1 answer
188 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 ...
Ruth Lazkoz's user avatar
3 votes
1 answer
69 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 ...
user5601's user avatar
  • 3,581
1 vote
0 answers
73 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 ...
bcegkmqs23's user avatar
4 votes
1 answer
123 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 ...
Bat71234's user avatar
-3 votes
1 answer
325 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# ...
Jan Eerland's user avatar
  • 1,941
0 votes
0 answers
107 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 (...
Lelouch's user avatar
  • 513
5 votes
0 answers
97 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 ...
Szabolcs's user avatar
  • 233k
9 votes
0 answers
206 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 ...
Nasser's user avatar
  • 137k
11 votes
2 answers
869 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 ...
aghostinthefigures's user avatar
0 votes
0 answers
151 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 ...
nalzok's user avatar
  • 279
0 votes
0 answers
41 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]; ...
Kagaratsch's user avatar
  • 11.9k
7 votes
1 answer
134 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 ...
Nasser's user avatar
  • 137k
12 votes
2 answers
271 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 ...
Acus's user avatar
  • 3,559
1 vote
0 answers
40 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 ...
Colin Lyle Jordan's user avatar
1 vote
0 answers
175 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 ...
Sashwat Tanay's user avatar
1 vote
0 answers
84 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 ...
Anti Earth's user avatar
  • 1,161
1 vote
0 answers
179 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 ...
user13892's user avatar
  • 9,113
0 votes
0 answers
73 views

List of all items stored in kernel

In Matlab, there is a window on the side that contains all of the variables stored in the workspace. Is there something equivalent in Mathematica? I am imagining a command kind of like DownValues or ...
ions me's user avatar
  • 761
3 votes
0 answers
86 views

Problem exporting vector graphics (PDF) in Mathematica Notebook Front-End using remote kernel on linux

I'm not being able to export vector graphics images (especially PDF) in a Mathematica Notebook Front-End in Windows 8.1 using a remote kernel on a Linux server. I can, however, export Raster Image ...
Eleteroboltz's user avatar
3 votes
1 answer
564 views

Launching remote kernel--increase timeout time

When launching several remote kernels manually on a cluster (as described in here under `Remote Kernels/Manual Launching') I see quite frequently the following error: ...
mmal's user avatar
  • 3,488
0 votes
0 answers
184 views

Dynamic updating issue

I would like to evaluate/simplify a series of expressions. The first set of expressions works fine, but when I try to evaluate the second line of my code (a very simple expression), the program keeps ...
Lednacek's user avatar
1 vote
0 answers
56 views

Can I still access my Mathematica Kernel after notebook disappears? [closed]

I am currently accessing a Linux research computer via x2go, and was running a long evaluation on a mathematica notebook there. Logging back on to check how it was going, the notebook was no longer ...
Thomas Cope's user avatar
7 votes
1 answer
127 views

Strange behavior of Out[]

Let's create two notebooks external.nb and primary.nb. Then call the external.nb notebook from the primary.nb and investigate values of Out[ ]. The context of the external notebook is not important, ...
Acus's user avatar
  • 3,559

1
2
3 4 5
7