Questions tagged [kernel-startup]

Options, methods or issues launching a Kernel instance

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

Why is my init.m not loading at startup?

The contents of init.m are placed inside an Initialization Cell so that some symbols are created in the Global` context and to prepend alternate paths to ...
1
vote
1answer
47 views

How do I initialise a compound expression in Animate? Or, how do I have an expression evaluate on startup?

I have written a notebook with a few functions I defined. These functions describe a way of generating graphs using 2 inputs. e.g. graph[n_,s_] := Graph[...] I have ...
1
vote
1answer
37 views

How to change path of $UserBaseDirectory to a new location during startup?

I wish to customize where packages and notebooks are saved by creating a custom directory tree which emulates Mathematica defaults. I wish to do this so that paths can be found in $ContextPath for ...
1
vote
1answer
50 views

Mathematica 12.1.1 does not boot up but kernel does [closed]

While Mathematica's kernel loads quite well, whenever I try to boot up the program itself it simply never boots. I've tried completely erasing Mathematica and reinstalling, but this did not work. What ...
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 ...
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?
8
votes
1answer
546 views

Parallel computing: cores vs threads

I'm running Mathematica on a machine wtih 48 cores and 96 threads. I want to limit the number of threads the computation can have access to. If I give LaunchKernels[1] it correctly launches a single ...
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 ...
2
votes
0answers
163 views

Mathematica 12.1 not starting

I have installed Mathematica 12.1 on my Windows 7 desktop and also activated it via the Mathematica Kernel option in the startup menu. But when I try to start it normally I always get the same error ...
0
votes
0answers
88 views

Mathematica 12 Simply Does Not Work

I am pretty new to this software, and I am having trouble even starting to use the program. Whenever I start Kernel, beep sound comes out and says: "The kernel Local has quit (exited) during the ...
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 ...
4
votes
0answers
240 views

Mathematica 12.1 start-up time in Linux extremely slow

I installed Mathematica 12.1 on my Linux machine and the start-up time is extremely slow. I see the Spikey logo and messages like: Initializing Kernel connections ...
2
votes
0answers
119 views

Mathematica 8 won't launch on Fedora [closed]

I installed Mathematica on Fedora 31. Installation went fine. No errors. When I start Mathematica from temrinal, I see the banner, GUI opens up, and I see an error in the terminal : There was an ...
2
votes
1answer
156 views

Formatting error in Mathematica 12

Recently, my copy of Mathematica v.12 started reporting the error An improperly formatted directive with head Times was encountered. on startup. This error also shows up in the Messages window ...
-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# ...
2
votes
0answers
92 views

Launch Kernels on Windows 10 from Raspberry Pi (linux) over SSH

I am trying to launch remote kernels on a Windows 10 PC (remote) from a Raspberry Pi 4 (Master or local). Both machines have V12 installed. On the Windows machine, I have installed OpenSSH per ...
3
votes
1answer
319 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: ...
1
vote
0answers
69 views

Launching All Unoccupied Threads as Kernels [CPU Usage Assessment with Mathematica]

I'm working on a PC with 10 processor cores (20 threads), so it can support 20 concurrent computations. I often run simulations in the background on my PC such that some fraction of these, say 12, ...
4
votes
0answers
306 views

Mathematica 11.0.1 freezes on startup

My MMA Installation (11.0.1, Windows 7) newly freezes the Welcome screen somtimes. I'm looking/hoping for a similar solution like Mathematica 10.0.x freezes in Initializing kernels? Thanks
2
votes
2answers
1k views

Mathematica 11.3 keeps crashing on initializing Kernel

I have been using a licenced mathematica, provided by my research institute, for a while. Weeks ago it happened to me that at the startup of my mathematica (while initializing Kernel), mathematica ...
18
votes
2answers
580 views

Different strategies to get a clean Kernel. Quit, Exit, ClearAll, Remove, CleanSlate?

Often new users face problems with lingering definitions that, if unaware, may cause unexpected and frustrating behaviour. There are several answers that illustrate different aspects of the solution, ...
2
votes
1answer
103 views

Make File/New/Notebook create a new kernel by default

File/New/Notebook creates a new notebook using the same current kernel. Is it possible to make it create a new kernel by default? I know how to create a new kernel manually and set that kernel to my ...
8
votes
1answer
163 views

How to use a remote windows laptop for NetTrain?

I have a windows 10 laptop (with a gpu) at home and a macbook at my office, both with v11.3. What are steps to use the windows machine remotely for training? That is, I want to launch and run ...
2
votes
0answers
31 views

Problem with autoloading packages in Parallel kernels on 11.2 [duplicate]

After migrating to a new machine (running Mathematica 11.2 on Linux), I am experience a problem with packages in the autoload directory not loading when I launch parallel kernels. The setup I use is ...
2
votes
0answers
362 views

Mathematica 11.2 / 11.3 Startup error

This is problem that I am finding since the last release of Mathematica version 11.2 and also in version 11.3. On starting up Mathematica I get the following three messages: 1) An unknown menu ...
0
votes
1answer
75 views

Define parameters local to a notebook section

Is there a way to split a Mathematica worksheet, so that I can define parameters that are valid only for a section of the worksheet, like "local parameters" of a Matlab or C++ function? I need a ...
0
votes
1answer
74 views

Opening notebook immediately produces error message [closed]

Whenever I open the file I get the following as an error ReplaceAll::reps: {Sol} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing. but as soon ...
0
votes
0answers
245 views

How to recover from this kind of startup error without reinstalling Mathematica? [duplicate]

How to recover from this kind of startup error without reinstalling Mathematica?
2
votes
1answer
244 views

Error with “Drop” when starting up Mathematica

This is for v11.2. Sometimes when I open up and then evaluate a notebook, the following messages appear: ...
4
votes
0answers
152 views

How to prevent checking internet at startup

Every time I start Mathematica 11.1, or restart a session after Quit, it takes about 20 seconds on my rMBP 2014 MacOS X 10.10 for the kernel to start up. I just ...
5
votes
0answers
489 views

Can't Launch Kernels, Updating from Wolfram Research Server

So, I'm running Mathematica on an HPC cluster using the math module command line interface. I'm trying to figure out some problems with attempting to parallelize my ...
12
votes
1answer
488 views

How to automatically do a computation, Quit[], restart and do a new computation

Related questions have been asked before (eg Where does a package have to be loaded?, https://stackoverflow.com/questions/6152023/quit-kernel-in-mathematica-by-a-command-not-using-evaluation-menu, ...
3
votes
1answer
156 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/Autoload/...
7
votes
1answer
373 views

Package loading in init.m

I'm loading a package at startup in "~/Library/Mathematica/Kernel.init", which looks like this: ...
3
votes
0answers
131 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 ...
7
votes
2answers
154 views

Is it possible to clone the state of a kernel into a second kernel for long evaluations?

I often have a long calculation I want to execute, while still being able to run short evaluations to experiment. I've set up a second kernel for long evaluations and currently copy all the previous ...
4
votes
1answer
247 views

Mathematica not using all cores available

I am trying to run a ParallelDo loop in Mathematica, that uses NSolve to solve an equation for a number of different input ...
15
votes
2answers
646 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
905 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 ...
0
votes
0answers
526 views

When I start Mathematica 11 and do a simple calculation like 2 + 2, it continuous running and never completes

I'm using Mathematica 11 on Mac. When I start Mathematica and create a new notebook then do some simple calculation like 2 + 2 and press Shift+Enter, it continues ...
2
votes
1answer
487 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 ...
4
votes
0answers
75 views

Is every menu command equivalent to a command that can be executed within a notebook?

If so, is there a directory which gives the in-notebook command associated with each menu command ? In particular, I would like to know how to replicate the menu command Evaluation -> Quit Kernel -> ...
1
vote
1answer
57 views

`$ContextPath` different on first run

When I run Quit, then the first time after that I evaluate $ContextPath I get ...
0
votes
0answers
221 views

`{Protected, ReadProtected}` System symbols give “Set::write: ”Tag * in *[v_] is Protected" on first try

Run Quit, then Unprotect@AbelianGroup; AbelianGroup[v_] = 0; Protect@AbelianGroup; where instead of ...
2
votes
0answers
144 views

Mathematica 10.4 consuming 100% CPU after startup

Whenever I start up a new Mathematica session, I have to restart the kernel do anything. For example, if I just enter 1 (or any other command) into a blank ...
14
votes
1answer
1k views

How to use the Autoload directory?

According to the documentation, packages in $UserBaseDirectory/Autoload will load automatically on startup. I placed an .m file ...
10
votes
1answer
130 views

How to ensure that a package is always loaded on startup, even in parallel kernels?

Is there a robust way to ensure that a package is always loaded on startup, even in parallel kernels? Parallel kernels do not read Kernel/init.m.
0
votes
0answers
78 views

Mathematica 9.0 reboots in Initializing kernels, please help

After having read these post: Mathematica 10.0.x freezes in Initializing kernels, Mathematica sporadically crashes on open, Front end freezes on start-up, I have borrowed the title for this question ...