From: Alessandro on

I don't know if it is available & I cannot find it...

Some notebooks I use are fairly large, and after starting Math I
usually evaluate them all.
Sometimes however I'd prefer to evaluate them up to a certain line, if
for example I have some problems at that point.
It would be useful to have a command similar to the "Run to the
cursor" facility used in many debuggers, in the form of "Evaluate to
the cursor".
Any hope?

alessandro


From: dh on
Hi Alessandro,
you coul e.g. try:
FrontEndTokenExecute["EvaluatorInterrupt"]
or
FrontEndTokenExecute["EvaluatorAbort"]
But the simpliest would be to out comment the part you do not want.
cheers, Daniel

Am 20.05.2010 12:39, schrieb Alessandro:
> I don't know if it is available& I cannot find it...
>
> Some notebooks I use are fairly large, and after starting Math I
> usually evaluate them all.
> Sometimes however I'd prefer to evaluate them up to a certain line, if
> for example I have some problems at that point.
> It would be useful to have a command similar to the "Run to the
> cursor" facility used in many debuggers, in the form of "Evaluate to
> the cursor".
> Any hope?
>
> alessandro
>
>


--

Daniel Huber
Metrohm Ltd.
Oberdorfstr. 68
CH-9100 Herisau
Tel. +41 71 353 8585, Fax +41 71 353 8907
E-Mail:<mailto:dh(a)metrohm.com>
Internet:<http://www.metrohm.com>


From: James Stein on
Click on the topmost group in your notebook;
then shift-click on the final group you wish to evaluate.
This should select all groups down to a certain point.
(At least, it does on a Macintosh ;-).
Shift-return will now evaluate the selected groups.
Will this do what you want?

dh wrote:
"But the simpliest would be to out comment the part you do not want."
Probably not; AFAIK there is no way to span groups with a single comment.


On Thu, May 20, 2010 at 3:38 AM, Alessandro <alexxx.magni(a)gmail.com> wrote:

>
> I don't know if it is available & I cannot find it...
>
> Some notebooks I use are fairly large, and after starting Math I
> usually evaluate them all.
> Sometimes however I'd prefer to evaluate them up to a certain line, if
> for example I have some problems at that point.
> It would be useful to have a command similar to the "Run to the
> cursor" facility used in many debuggers, in the form of "Evaluate to
> the cursor".
> Any hope?
>
> alessandro
>
>
>


From: David Park on
Do you mean that you have one long notebook that is a sequence of
Input/Output cells?

Why not organized the notebook into major sections using Sectional Grouping
(just add Section cells)? Then you could easily select initial sectional
groups of cells to evaluate and then go into the section you are working on.
This isn't as precise as you are asking, but it might be convenient enough.

An opposite case that often occurs is to have sectional grouping and to be
able to enter a notebook and go to any section and start evaluating. You can
arrange this by having all necessary evaluations as Initialization cells,
possibility in a Routines section.


David Park
djmpark(a)comcast.net
http://home.comcast.net/~djmpark/



From: Alessandro [mailto:alexxx.magni(a)gmail.com]


I don't know if it is available & I cannot find it...

Some notebooks I use are fairly large, and after starting Math I
usually evaluate them all.
Sometimes however I'd prefer to evaluate them up to a certain line, if
for example I have some problems at that point.
It would be useful to have a command similar to the "Run to the
cursor" facility used in many debuggers, in the form of "Evaluate to
the cursor".
Any hope?

alessandro




From: Alessandro on
On 20 Mag, 13:24, dh <d...(a)metrohm.com> wrote:
> Hi Alessandro,
> you coul e.g. try:
> FrontEndTokenExecute["EvaluatorInterrupt"]
> or
> FrontEndTokenExecute["EvaluatorAbort"]
> But the simpliest would be to out comment the part you do not want.
> cheers, Daniel
>
> Am 20.05.2010 12:39, schrieb Alessandro:
>
> > I don't know if it is available& I cannot find it...
>
> > Some notebooks I use are fairly large, and after starting Math I
> > usually evaluate them all.
> > Sometimes however I'd prefer to evaluate them up to a certain line, if
> > for example I have some problems at that point.
> > It would be useful to have a command similar to the "Run to the
> > cursor" facility used in many debuggers, in the form of "Evaluate to
> > the cursor".
> > Any hope?
>
> > alessandro
>
> --
>
> Daniel Huber
> Metrohm Ltd.
> Oberdorfstr. 68
> CH-9100 Herisau
> Tel. +41 71 353 8585, Fax +41 71 353 8907
> E-Mail:<mailto:d...(a)metrohm.com>
> Internet:<http://www.metrohm.com>

that (FrontEndTokenExecute["EvaluatorAbort"]) was exactly what I was
seeking for, thank you.

alessandro