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, 20 Feb 2014 11:05:04 +0100How do I split a cell in two in sagemath?https://ask.sagemath.org/question/11003/how-do-i-split-a-cell-in-two-in-sagemath/I have two input lines in a notebook at sagecloud, and evaluating either evaluates both, and prints the output for both below. How do I separate them into two separate cells? (As I might with cmd-shift-D in mathematica.)Tue, 18 Feb 2014 08:49:25 +0100https://ask.sagemath.org/question/11003/how-do-i-split-a-cell-in-two-in-sagemath/Answer by kcrisman for <p>I have two input lines in a notebook at sagecloud, and evaluating either evaluates both, and prints the output for both below. How do I separate them into two separate cells? (As I might with cmd-shift-D in mathematica.)</p>
https://ask.sagemath.org/question/11003/how-do-i-split-a-cell-in-two-in-sagemath/?answer=16065#post-id-16065I don't know if this would work, but in the Sage notebook (not the same as SMC) this works:
Press ctrl-; in a cell to split it into two cells, and ctrl-backspace to join them. Press ctrl-enter to split a cell and evaluate both pieces.
So maybe some variant on ctrl+something would work.Tue, 18 Feb 2014 09:56:00 +0100https://ask.sagemath.org/question/11003/how-do-i-split-a-cell-in-two-in-sagemath/?answer=16065#post-id-16065Comment by cjsh for <p>I don't know if this would work, but in the Sage notebook (not the same as SMC) this works:</p>
<pre><code>Press ctrl-; in a cell to split it into two cells, and ctrl-backspace to join them. Press ctrl-enter to split a cell and evaluate both pieces.
</code></pre>
<p>So maybe some variant on ctrl+something would work.</p>
https://ask.sagemath.org/question/11003/how-do-i-split-a-cell-in-two-in-sagemath/?comment=16071#post-id-16071I try all 26 CTRL+ABC.... cannot split....in sagecell
Thu, 20 Feb 2014 00:30:27 +0100https://ask.sagemath.org/question/11003/how-do-i-split-a-cell-in-two-in-sagemath/?comment=16071#post-id-16071Comment by kcrisman for <p>I don't know if this would work, but in the Sage notebook (not the same as SMC) this works:</p>
<pre><code>Press ctrl-; in a cell to split it into two cells, and ctrl-backspace to join them. Press ctrl-enter to split a cell and evaluate both pieces.
</code></pre>
<p>So maybe some variant on ctrl+something would work.</p>
https://ask.sagemath.org/question/11003/how-do-i-split-a-cell-in-two-in-sagemath/?comment=16228#post-id-16228This answer originally also referred to embedded Sage cell instances, which can be separated; however, one has to hard-code that into an HTML page, so it wasn't relevant to *this* question. Thu, 20 Feb 2014 09:59:41 +0100https://ask.sagemath.org/question/11003/how-do-i-split-a-cell-in-two-in-sagemath/?comment=16228#post-id-16228Answer by niles for <p>I have two input lines in a notebook at sagecloud, and evaluating either evaluates both, and prints the output for both below. How do I separate them into two separate cells? (As I might with cmd-shift-D in mathematica.)</p>
https://ask.sagemath.org/question/11003/how-do-i-split-a-cell-in-two-in-sagemath/?answer=16072#post-id-16072`ctrl+Enter` splits a cell in two (and evaluates the lower one).
To join cells, just delete the line separating them (no modifier key necessary).
Thu, 20 Feb 2014 11:05:04 +0100https://ask.sagemath.org/question/11003/how-do-i-split-a-cell-in-two-in-sagemath/?answer=16072#post-id-16072