Ask Your Question
1

removing output; splitting sagews files

asked 2020-09-07 00:25:14 +0100

carl_eberhart gravatar image

Is there a quick way to remove all the output from a sagews file? Also, is there a quick way to split a sagews file into two files? I am happy to use a terminal if there are commands for these jobs Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-09-07 03:44:43 +0100

HSnyder gravatar image

Is there a quick way to remove all output from a sagews file?

Yes. Select all, then hit the delete output button (just right of the "in" and "out" toggles - it looks like a white "x" in a black circle). If you use vim editor mode, which I do, you need to be in input mode when doing this.

Is there a quick way to split a sagews into two sagewses?

The quickest way I can think of is to duplicate the file (there is a button for this in the Files tab), then delete the bottom half from one file and the top half from the other. A sage worksheet is one big edit buffer, so you can easily select large stretches of the file and delete. Again, if you use vim editor mode, you need to be in input mode to do this.

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

1 follower

Stats

Asked: 2020-09-07 00:25:14 +0100

Seen: 219 times

Last updated: Sep 07 '20