Ask Your Question
1

line numbers in web notebook

asked 2015-12-31 00:24:48 +0200

bruno171092 gravatar image

updated 2015-12-31 08:57:55 +0200

slelievre gravatar image

I use Sage in my Mozilla Firefox browser as notebook and wanted to know how i get line numbers in my computing cells.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-12-31 09:01:58 +0200

slelievre gravatar image

updated 2015-12-31 09:27:26 +0200

In the Sage Notebook, there is no way to display line numbers or cell numbers, as far as I know.

In the Jupyter Notebook, cells are numbered, but I don't think there is a way to display line numbers.

To run the Jupyter notebook with Sage (version 6.9 or more recent), run the following terminal command:

sage -n jupyter

This will let you explore your filesystem hiearchy (starting from the place you launched the above command from) and you can click "New" to create a new Jupyter Notebook any place you like.

The SageMathCloud worksheets are the only way I know to get line numbering for the whole worksheet. To use it, create an account on SageMathCloud at http://cloud.sagemath.com/ and create a new project. In this project, create a new Sage worksheet.

If you feel comfortable, you can also try to install your personal SageMathCloud on your machine. There are discussions on the sage-cloud mailing list about this process.

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: 2015-12-31 00:24:48 +0200

Seen: 989 times

Last updated: Dec 31 '15