Ask Your Question

Revision history [back]

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.

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.