Ask Your Question
1

restart execution of a single cell, sage worksheet

asked 2016-07-07 16:29:26 +0100

slaglj gravatar image

If I'm working in a Sage Worksheet, how can I stop (or restart) the execution of a single cell without stopping the whole worksheet?

If the execution is taking longer than it should and I want edit the cell (if I'm debugging an infinite loop, say) and re-execute without waiting for the initial execution to complete, what's the quickest way to do that?

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-07-07 16:40:01 +0100

tmonteil gravatar image

updated 2016-07-07 16:42:41 +0100

If you are using the Sage notebook, you can interrupt the computation in a cell by doing CTRL+Cor by clicking on Action > Interrupt button on the top of the worksheet. It will keep the state of the worksheet (variables) untouched. If you want to forget all computations, you can click on Action > Restart Worksheet.

If you are using the jupyter notebook, you can interrupt the computation in a cell by clicking on Kernel > Interrupt button on the top of the worksheet. If you want to forget all computations, you can click on Kernel > Restart.

edit flag offensive delete link more

Comments

And if SMC worksheet?

kcrisman gravatar imagekcrisman ( 2016-07-07 17:40:54 +0100 )edit

(Also, Esc should interrupt the computation too.)

kcrisman gravatar imagekcrisman ( 2016-07-07 17:41:05 +0100 )edit

I have no idea, i am not using smc.

tmonteil gravatar imagetmonteil ( 2016-07-07 17:49:11 +0100 )edit

(I suspect the OP is using sagenb, just thought it would be useful for completeness.)

kcrisman gravatar imagekcrisman ( 2016-07-07 23:07:38 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-07-07 16:29:26 +0100

Seen: 956 times

Last updated: Jul 07 '16