Skip to main content

Questions tagged [abort]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
58 views

Interrupt calculations without losing memory [closed]

Writing: a = 1; Do[If[n == 3, Quit[]], {n, 5}]; Print["Hello!"]; the calculations stop and the following code does not execute: perfect, that's what I ...
Monster's user avatar
  • 335
0 votes
0 answers
67 views

Any way to eliminate evaluating cells except for "Abort evaluation"?

I have a notebook with many cells, one of which contains an evaluation of some condition. If it is False, I want to have an automatized way of the "Abort ...
John Taylor's user avatar
  • 5,827
0 votes
0 answers
50 views

Convex hull aborts kernels (reproducible)

11.0.0 for Microsoft Windows (64-bit) (July 28, 2016) ReleaseID -> "11.0.0.0 (5570737, 2016072801) a set of 32 points : ...
Wouter's user avatar
  • 1,343
3 votes
0 answers
24 views

Global time constraint or sandboxing across a notebook?

This may be off-topic, but when accidentally running a process which turns out to be computationally more intensive than expected (or even getting stuck in an infinite loop), it seems that there is ...
user366202's user avatar
2 votes
1 answer
52 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,245
1 vote
0 answers
32 views

How abort entirely execution of all subsequent initialisation cells in a notebook using an initial test?

I have a "client" notebook that depends on an existing variable (expression) created elsewhere. I have a test at the top to check whether that variable exists and is well conditioned as the ...
Webel IT Australia - upvoter's user avatar
0 votes
0 answers
45 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
0 votes
1 answer
234 views

Can You Configure Mathematica to Not Abort?

So I am playing around with an interpolation polynomial. The code for what I am trying to do is computationally heavy: ...
Chloe's user avatar
  • 165
3 votes
1 answer
44 views

Keep Reap / Sow results after breaking out of a loop [closed]

I am doing a long calculation where I create a list using Reap and Sow. However, sometimes this calculation gets too wild and I ...
Philipp's user avatar
  • 51
5 votes
1 answer
111 views

Detect front-end Abort in C WSTP process

I have a long loop in a C WSTP process, within which I intermittently check for abort messages sent by the front-end: ...
Anti Earth's user avatar
  • 1,211
2 votes
1 answer
48 views

How to use another algorithm when the first approach is too slow?

I need to write a program that uses an alternate algorithm when the algorithm first attempted is taking too long. Here is a minimal example. ...
Ted Ersek's user avatar
  • 7,134
1 vote
1 answer
46 views

Reduce relations with Fibonacci function never terminates,

i have a reduce operation which includes Fibonacci function. but the problem is it never terminates, i tried some modifications, for example removing f1 in my relation. sometimes it works and at least ...
Azzurro94's user avatar
  • 499
1 vote
1 answer
105 views

Mathematica Kernel Aborting With ComplexPlot

I am trying to run the following line: ...
EllipticalInitial's user avatar
0 votes
0 answers
56 views

My mathematica is broken, can someone help? (error "Kernet is not responding to Dynamic Evaluation")

I have been doing some intensity plots on mathematica and it was working fine. It stopped responding when I tried to run 'Animate' command to try to see a simulation of the same intensity plots that I ...
Raghav's user avatar
  • 1
2 votes
0 answers
30 views

Getting different results with `Abort` run in the documentation window vs a notebook (probably newlines) [duplicate]

I'm getting different results with respect to Abort when performed in a reference documentation notebook vs a new notebook. I am pretty confident it's to do with ...
Patrick Stevens's user avatar
3 votes
0 answers
55 views

If I use NotebookEvaluate, then I can't abort a While loop [duplicate]

I have a notebook Main.nb. This notebook contains a While[...] loop that takes about twelve hours to run. I have a second ...
Chris 's user avatar
  • 467
0 votes
0 answers
56 views

Writing a function that has two inputs

Write a function called DOTPRODUCT that has two inputs u and v, assumed to be two non-empty lists of numbers of arbitrary length, checks that the two lists are of equal length, prints an error message ...
Kelsie Sonnek's user avatar
2 votes
0 answers
221 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,491
2 votes
0 answers
93 views

Has Abort Evaluation changed in M12.1

I've noticed that in M12 abort evaluation doesn't behave the same as it has done in previous versions. for example if I have some form of batch fitting routine: ...
user27119's user avatar
  • 2,520
0 votes
0 answers
92 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
1 vote
0 answers
82 views

Abort evaluation in only one window?

Is there any way to abort evaluation only in one window? I tried both alt . and quitting the kernel, this stopped evaluation in all windows and actually lost me some time because I only meant to ...
doublefelix's user avatar
3 votes
1 answer
211 views

any way to stop all the following evaluations?

I often slect the whole notebook to evaluate. Sometimes some functions may return wrong parameters, which may happen, for example, I may have forgotten to specify values to some variables in the ...
larry's user avatar
  • 735
1 vote
1 answer
56 views

How can I programmatically abort an operation that is taking too long?

I have a function f, over whose source code I have no control. Is there a way for me to decorate f so that if the evaluation ...
Shredderroy's user avatar
  • 5,249
3 votes
1 answer
2k views

How to abort running evaluation?

I would like to implement a "Stop" Button into a program that basically consists of a loop. Unfortunately I do not how to interrupt the running evaluation. Minimal Example: ...
Peter's user avatar
  • 33