The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
69 views

Calculation time for a limit, is my calculation still calculating?

I am calculating the limit of an eighth order derivative with ~700 terms. The notebook has been in the 'running' phase for a few days now. If it says it is still running, does this necessarily mean ...
5
votes
4answers
3k views

High Fibonacci numbers [duplicate]

When I investigate Fibonacci's series fib[n_] := fib[n] = fib[n - 1] + fib[n - 2] fib[0] = fib[1] = 1; Block[{$RecursionLimit = 10^4}, fib[10^3]] I can evaluate ...
2
votes
0answers
86 views

Export cdf does not work in MathKernel command line

I am using Mathematica through command line MathKernel. I am not trying to draw any graphics in the console. But I should be able to export things a CDF. Why can't ...
2
votes
1answer
114 views

Backing up and restoring all Mathematica notebook variables using 'Put' '>>' and 'Get' `<<`

As discussed here and here, the state of a notebook can be backed up by saving all variables using: DumpSave["backup.mx", "Global`"]; These variables can be ...
3
votes
1answer
61 views

Sharing kernel between interactive command line and notebook?

What I miss at times in Mathematica is an interactive prompt where I can type to see, e.g., the value of a variable, without having to go through the hassle of cleaning the notebook from cluttering ...
1
vote
0answers
95 views

keep Mathematica session alive on ssh

I have to access to a server via ssh and open a graphical session, using XQuartz, for using Mathematica. Is it possible to let Mathematica run even when I disconnect to the server? I could add ...
4
votes
1answer
545 views

Mathematica remote kernel on ubuntu

I want to evaluate an expression on a server where it has a kernel. I totally searched on the internet but still I am not able to connect to the remote kernel. I am looking for a clear and a direct ...
1
vote
0answers
115 views

Kernel compilation failed

I'm trying the cuda in mathematica 11.1. The cuda functions seems to work fine. The CUDAFluidDynamics[], runs the example simulation, although I am not certain if it runs on the device or the host. ...
3
votes
0answers
224 views

Parallel kernel status is idle though program is running [closed]

The Mathematica window says that the program is running. However, the parallel kernel status says that the kernel is idle. What does this mean?
3
votes
0answers
124 views

Mathematica Kernels in a remote machine via port forwarding and no public password

I would like to launching Mathematica kernels on a remote machine. Port forwarding is required to connect to this machine. I usually need to connect to a machine via ssh port forwarding and then in ...
11
votes
1answer
225 views

Clean package update for API/FormFunctions on Wolfram Cloud

Cross posted on community.wolfram.com (new comments) TLDR There is a pool of kernels/sessions available for each user, you don't have control over the pool only over specific kernel you currently ...
3
votes
1answer
108 views

Autoload a package

I want to aoutoload a package at the beginning of a notebook. I set up my directory as written here How to use the Autoload directory? So, I have these files: ../Work/MyFile.nb ../Work/...
6
votes
2answers
207 views

How can I terminate a MathKernel that is running an external program after a timeout?

I'm using ParrallelDo to parallel run another program (windows executable) in 8 subkernels. Sometimes a SubKernel freezes. What I see in the task-manager is that ...
3
votes
0answers
69 views

How can I programmatically set a notebook's kernel? [duplicate]

Is there a way to to change the notebook's kernel without using the menu?
7
votes
1answer
274 views

Package loading in init.m

I'm loading a package at startup in "~/Library/Mathematica/Kernel.init", which looks like this: ...
2
votes
0answers
116 views

Launching Mathematica 11 kernel through double SSH

I'm trying to connect to a server in my university to do some computations. The problem is that I first need to login to one server through SSH and then from this one go to the "computation" server (I ...
8
votes
1answer
140 views

RegionMeasure on packed array crashes Kernel in version 11.1

Bug introduced in 11.1.0 and fixed in 11.1.1 In version 11.1.0, applying RegionMeasure or Area to a region with packed ...
1
vote
1answer
115 views

Measuring memory use

Here is some simple code: Quit[] B[d_] := Sum[Sqrt[1 + k^2] // N[#, d] &, {k, 0, 2 d}] LaunchKernels[]; k = $KernelCount outputting 6 for k. Next, I have ...
-1
votes
1answer
166 views

Using different master kernel in the same notebook

In my notebook, I have to call another file, let's say 'program.m' that defines functions, let's say F[] of whom result c I need ...
0
votes
1answer
134 views

After some calculations, Mathematica forgets previous results

After I do some calculations, the next calculation often just returns the previous declared result as a name and I have to start all over. My "parallel kernel configuration" is set to "manual" with ...
6
votes
1answer
129 views

Nonsparse SparseArray crashes the Kernel

Bug introduced in 10.0 and fixed in 11.1 On Windows 10, 64 bit, version 11.0.1, my kernel just started crashing for no reason as for as I can see. Does/should the following crash your kernel? ...
1
vote
1answer
286 views

Can I run more than two kernels simultaneously on my MacBookAir laptop?

I'm running Version Number 10.0.1.0 with Platform Mac OS X x86 (32-bit, 64-bit kernel). I have two Mathematica programs running using "Local" and "Alternative Local Kernel". Is this the most I can ...
4
votes
1answer
90 views

Programmatically access the data from the Parallel Kernel Status window

I want to show the parallel kernel status within a notebook, and not in the separate Parallel Kernel Status window. How can I programmatically access the Performance Measurements data shown in the ...
9
votes
1answer
211 views

Why FindMinimum crashes the kernel in specific situation

Bug introduced in 11.0.0 and fixed in 11.1 I have found that FindMinimum crahses is a certain situation. Here is my minimal working example: ...
1
vote
1answer
104 views

ParallelTable Automatically kill MathKernel

At the moment I continously encounter the problem that while using ParallelTable the process kswap needs all the memory, while the four running MathKernels receive almost zero %Memory, which slows ...
15
votes
2answers
613 views

Detecting kernel initialization

Certain operations do not work during kernel initialization. Code from Kernel/init.m, the Autoload directory, or packages set ...
22
votes
2answers
751 views

Restarting Mathematica automatically

I run a large computation in a loop. At each cycle of the loop I produce large arrays that I save on a disk. At each cycle I would like to Quit Mathematica and ...
5
votes
2answers
208 views

Import JPEG Fails

Bug introduced in 11.0.0 and persists through 11.0.1 I have a set of .jpg files that not only fail Import[] but also crash the kernel. Sample file here. There is ...
9
votes
1answer
298 views

Abort all evaluations via command

Is there a command to abort all evaluations in a Mathematica Kernel? Basically I want something like: somecode; AbortAll[]; morecode; Where the ...
1
vote
0answers
48 views

ParallelDo only output one file using $KernelID

I have some codes like this: ...
3
votes
1answer
238 views

Autocomplete in wolfram (the Wolfram Language kernel in a shell)

Is is possible to have an autocomplete feature in the CLI of Wolfram Language kernel? I use the Raspberry Pi edition.
7
votes
0answers
213 views

What is a “generic case”?

Introduction With this question I am coming back to a long-standing issue I have with Mma's concept of a "generically correct" result. The basic idea seems to be, vaguely, that if a result is true in ...
7
votes
0answers
167 views

Bug: Calling `SetSharedVariable` while kernels are running hangs them up/crashes them

Bug introduced in 9.0 or earlier and persisting through 11.0.1 or later Start a fresh kernel Quit, and maybe launch ...
5
votes
1answer
270 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 ...
6
votes
1answer
673 views

Mathematica versions 10 and 11 fonts are broken on Linux

Any clues on how to fix the fonts? It seems the font kerning is wrong. It happens both in graphics and in all sorts of text styles... This happens with Mathematica system fonts but also with certain ...
2
votes
1answer
416 views

How to tell Mathematica do parallel computation?

I am using NDSolve on a workstation with 6 kernels. To speed up the simulation I have used LaunchKernels[] to load all the ...
19
votes
0answers
187 views

Status of all Evaluators?

Since I have 4 cores on my machine I typically have 4 notebooks open each with their own kernel evaluator. I'd like to construct a dynamic pane similar to the parallel kernels status window: But that ...
2
votes
0answers
58 views

Any kernel monitor alternatives?

Sometimes the Parallel Kernel Status looks like this: Is there any way to visualize the kernels without using the built in tool?
1
vote
0answers
47 views

Simutaneously evaluate two expression in the same notebook [duplicate]

Suppose I have two expressions in the same note book but in different cells, both of them take much time to evaluate. In general, mathematica waits until the first expression is done, then evaluate ...
6
votes
0answers
108 views

Finish(Asynchronous)Dynamic[]

I have a question deriving from a recent topic Synchronizing Dynamics with EventActions. tl;dr; How to authoritatively explain the influence of ...
35
votes
4answers
3k views

Why doesn't Mathematica abort evaluation when I tell it to?

This frequently happens to me. I'll have some code, execute it, and realize it's taking a long time. My PC isn't frozen, and Mathematica itself isn't even frozen: I can select stuff in the notebook, ...
7
votes
1answer
169 views

How does the Kernel know the $Context in a localized notebook

SetOptions[EvaluationNotebook[], CellContext -> Notebook] $Context "Notebook$$70$398424`" And from different notebook it ...
29
votes
1answer
838 views

Is the renaming mechanism of `With` flawed?

I'm confused about the renaming mechanism of With: ...
4
votes
2answers
404 views

Easy way to close all Mathematica kernels?

When developing functionalities with several parallel kernels, when a bug happens, I often have to manually close all parallel kernels (using the Task Manager in Windows) in order to start again from ...
4
votes
1answer
146 views

Kernel crash after simple input of variable defintion

Fixed in 10.3.0 I have encountered a very surprising and annoying kernel crash: ...
7
votes
3answers
225 views

Kernel randomly aborting

Bug introduced in 10.0 and fixed in 10.3 So after 2 days of trying to figure out what's going on, I figure I should post here as I don't have enough knowledge about the Mathematica evaluation process ...
0
votes
0answers
37 views

Mathematica does not responding [duplicate]

These days, when I opened mathematica 10.4 in Windows 10, I even cannot type three characters, and it stucks. Yes, every time when I type the third number or character, it stops. I found that, even, I ...
9
votes
0answers
207 views

Why would killing the kernel defreeze/unhang the front end?

My Mathematica front end will freeze occasionally for unreproducible reasons. This seems mostly associated with long (> 1 hour) computations, although not exclusively. If I click on the Mathematica ...
7
votes
1answer
283 views

Determine how Mathematica was started

I have a notebook that I also execute as a m file on the command line. Depending on whether I run the notebook or the m file, I want to use slightly different commands. For example, ...
0
votes
1answer
277 views

Why is Mathematica dying? [closed]

Example: ...