First time here? Check out the FAQ!

Ask Your Question
2

How do I split a cell in two in sagemath?

asked 11 years ago

Scott Morrison gravatar image

updated 10 years ago

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

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
2

answered 11 years ago

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.

Preview: (hide)
link

Comments

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

cjsh gravatar imagecjsh ( 11 years ago )

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 ( 11 years ago )
1

answered 11 years ago

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

Preview: (hide)
link

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: 11 years ago

Seen: 1,394 times

Last updated: Feb 20 '14