How to get Sage back from a colon?

34 views
Skip to first unread message

Craig E Larson

unread,
Jun 9, 2015, 12:58:46 PM6/9/15
to sage-s...@googlegroups.com
Sometimes I forget a parenthesis, etc, and I get a colon input prompt. Double-enter won't escape the colon. Correcting the syntax also isn't enough. Control-Z will exit Sage totally and I lose my data and history. Is there another way to escape the colon besides Control-Z?

Here's an example.

sage: is_P_position(ChompBoard([3,3,3,1])
....: 
....: is_P_position(ChompBoard([3,3,3,1]))
....: 
....: is_P_position(ChompBoard([3,3,3,1]))
....: 
....: 
....: 
....: 
....:   
....:          
Forever....

Thanks.

Vincent Delecroix

unread,
Jun 9, 2015, 1:03:44 PM6/9/15
to sage-s...@googlegroups.com
You need to close the parenthesis

sage: t = (
....: 1,
....: 2)
sage: t
(1, 2)

Vincent

Craig E Larson

unread,
Jun 9, 2015, 1:13:57 PM6/9/15
to sage-s...@googlegroups.com
Thanks!


--
You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/T5EasZWZBug/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.



--

CELarson Web: http://www.people.vcu.edu/~clarson

Automated Conjecturing for Sage: http://nvcleemp.github.io/conjecturing/

The Conjecturing Project: http://independencenumber.wordpress.com

VCU Discrete Math Seminar: http://www.people.vcu.edu/~dcranston/DM-seminar/

VCU Precalculus Web: http://wp.vcu.edu/precalculus

Craig Larson, Associate Professor
Department of Mathematics and Applied Mathematics
Virginia Commonwealth University

4106 Grace E. Harris Hall
1015 Floyd Avenue
Richmond, VA 23284-2014

John H Palmieri

unread,
Jun 9, 2015, 1:24:08 PM6/9/15
to sage-s...@googlegroups.com
Control-C will cancel the current command and return you to the "sage:" prompt.

  John

Volker Braun

unread,
Jun 9, 2015, 6:57:18 PM6/9/15
to sage-s...@googlegroups.com
Press Control-C  (not: Z)
Reply all
Reply to author
Forward
0 new messages