Ask Your Question
2

How do I split a cell in two in sagemath?

asked 2014-02-18 08:49:25 +0200

Scott Morrison gravatar image

updated 2015-01-13 18:08:50 +0200

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
1

answered 2014-02-20 11:05:04 +0200

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
2

answered 2014-02-18 09:56:00 +0200

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-20 00:30:27 +0200 )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 09:59:41 +0200 )edit

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 08:49:25 +0200

Seen: 915 times

Last updated: Feb 20 '14