ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 20 Feb 2014 04:05:04 -0600How do I split a cell in two in sagemath?http://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 01:49:25 -0600http://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>
http://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 02:56:00 -0600http://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>
http://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
Wed, 19 Feb 2014 17:30:27 -0600http://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>
http://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 02:59:41 -0600http://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>
http://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 04:05:04 -0600http://ask.sagemath.org/question/11003/how-do-i-split-a-cell-in-two-in-sagemath/?answer=16072#post-id-16072