Ask Your Question
0

How do I turn on and off line numbers?

asked 2023-04-11 16:48:35 +0100

SkipWorzel gravatar image

updated 2023-04-12 20:49:43 +0100

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-04-12 23:27:56 +0100

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

Stats

Asked: 2023-04-11 16:48:35 +0100

Seen: 284 times

Last updated: Apr 12 '23