Ask Your Question
0

How do I turn on and off line numbers?

asked 2 years ago

SkipWorzel gravatar image

updated 2 years ago

tmonteil gravatar image

I get the sage prompt, but it has no line number.

Example:

sage: 4+5
9
sage:%hist
4+5
%hist

I though the lines would be numbered so I can reference earlier lines.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 2 years ago

You can do %hist -n to get a numbered list.

sage: 4+5
9
sage: %hist
4+5
%hist
sage: %hist -n
   1: 4+5
   2: %hist
   3: %hist -n
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: 2 years ago

Seen: 304 times

Last updated: Apr 12 '23