Ask Your Question
1

restart execution of a single cell, sage worksheet

asked 2016-07-07 09:29:26 -0500

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 09:40:01 -0500

tmonteil gravatar image

updated 2016-07-07 09:42:41 -0500

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 10:40:54 -0500 )edit

(Also, Esc should interrupt the computation too.)

kcrisman gravatar imagekcrisman ( 2016-07-07 10:41:05 -0500 )edit

I have no idea, i am not using smc.

tmonteil gravatar imagetmonteil ( 2016-07-07 10:49:11 -0500 )edit

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

kcrisman gravatar imagekcrisman ( 2016-07-07 16:07:38 -0500 )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 09:29:26 -0500

Seen: 65 times

Last updated: Jul 07 '16