ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 07 Jul 2016 23:07:38 +0200restart execution of a single cell, sage worksheethttps://ask.sagemath.org/question/34046/restart-execution-of-a-single-cell-sage-worksheet/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!Thu, 07 Jul 2016 16:29:26 +0200https://ask.sagemath.org/question/34046/restart-execution-of-a-single-cell-sage-worksheet/Answer by tmonteil for <p>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? </p>
<p>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?</p>
<p>Thanks!</p>
https://ask.sagemath.org/question/34046/restart-execution-of-a-single-cell-sage-worksheet/?answer=34047#post-id-34047If you are using the Sage notebook, you can interrupt the computation in a cell by doing `CTRL+C`or 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`.
Thu, 07 Jul 2016 16:40:01 +0200https://ask.sagemath.org/question/34046/restart-execution-of-a-single-cell-sage-worksheet/?answer=34047#post-id-34047Comment by kcrisman for <p>If you are using the Sage notebook, you can interrupt the computation in a cell by doing <code>CTRL+C</code>or by clicking on <code>Action > Interrupt</code> 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 <code>Action > Restart Worksheet</code>.</p>
<p>If you are using the jupyter notebook, you can interrupt the computation in a cell by clicking on <code>Kernel > Interrupt</code> button on the top of the worksheet. If you want to forget all computations, you can click on <code>Kernel > Restart</code>.</p>
https://ask.sagemath.org/question/34046/restart-execution-of-a-single-cell-sage-worksheet/?comment=34048#post-id-34048And if SMC worksheet?Thu, 07 Jul 2016 17:40:54 +0200https://ask.sagemath.org/question/34046/restart-execution-of-a-single-cell-sage-worksheet/?comment=34048#post-id-34048Comment by kcrisman for <p>If you are using the Sage notebook, you can interrupt the computation in a cell by doing <code>CTRL+C</code>or by clicking on <code>Action > Interrupt</code> 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 <code>Action > Restart Worksheet</code>.</p>
<p>If you are using the jupyter notebook, you can interrupt the computation in a cell by clicking on <code>Kernel > Interrupt</code> button on the top of the worksheet. If you want to forget all computations, you can click on <code>Kernel > Restart</code>.</p>
https://ask.sagemath.org/question/34046/restart-execution-of-a-single-cell-sage-worksheet/?comment=34049#post-id-34049(Also, Esc should interrupt the computation too.)Thu, 07 Jul 2016 17:41:05 +0200https://ask.sagemath.org/question/34046/restart-execution-of-a-single-cell-sage-worksheet/?comment=34049#post-id-34049Comment by tmonteil for <p>If you are using the Sage notebook, you can interrupt the computation in a cell by doing <code>CTRL+C</code>or by clicking on <code>Action > Interrupt</code> 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 <code>Action > Restart Worksheet</code>.</p>
<p>If you are using the jupyter notebook, you can interrupt the computation in a cell by clicking on <code>Kernel > Interrupt</code> button on the top of the worksheet. If you want to forget all computations, you can click on <code>Kernel > Restart</code>.</p>
https://ask.sagemath.org/question/34046/restart-execution-of-a-single-cell-sage-worksheet/?comment=34050#post-id-34050I have no idea, i am not using smc.Thu, 07 Jul 2016 17:49:11 +0200https://ask.sagemath.org/question/34046/restart-execution-of-a-single-cell-sage-worksheet/?comment=34050#post-id-34050Comment by kcrisman for <p>If you are using the Sage notebook, you can interrupt the computation in a cell by doing <code>CTRL+C</code>or by clicking on <code>Action > Interrupt</code> 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 <code>Action > Restart Worksheet</code>.</p>
<p>If you are using the jupyter notebook, you can interrupt the computation in a cell by clicking on <code>Kernel > Interrupt</code> button on the top of the worksheet. If you want to forget all computations, you can click on <code>Kernel > Restart</code>.</p>
https://ask.sagemath.org/question/34046/restart-execution-of-a-single-cell-sage-worksheet/?comment=34053#post-id-34053(I suspect the OP is using sagenb, just thought it would be useful for completeness.)Thu, 07 Jul 2016 23:07:38 +0200https://ask.sagemath.org/question/34046/restart-execution-of-a-single-cell-sage-worksheet/?comment=34053#post-id-34053