Ask Your Question
2

How do I split a cell in two in sagemath?

asked 2014-02-18 01:49:25 -0500

Scott Morrison gravatar image

updated 2015-01-13 11:08:50 -0500

FrédéricC gravatar image

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.)

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
2

answered 2014-02-18 02:56:00 -0500

kcrisman gravatar image

I 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.

edit flag offensive delete link more

Comments

I try all 26 CTRL+ABC.... cannot split....in sagecell

cjsh gravatar imagecjsh ( 2014-02-19 17:30:27 -0500 )edit

This 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.

kcrisman gravatar imagekcrisman ( 2014-02-20 02:59:41 -0500 )edit
1

answered 2014-02-20 04:05:04 -0500

niles gravatar image

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).

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2014-02-18 01:49:25 -0500

Seen: 484 times

Last updated: Feb 20 '14