Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sage is a python-based mathematics software that integrates a wide range of mathematics software into a single python interface.

Calling sage from the terminal (which is how you call it) creates a CLI version of sage (the program's default) from which you can then call the sage notebook by typing, notebook(). The sage notebook is a web browser-based version of sage. I am running i386 12.10 if it helps.

When I run sage notebook() from the terminal I receive the error:

bash: syntax error near unexpected token `('
share|improve this question
What happens if you run sage notebook() as one command? – Seth Feb 2 '13 at 19:21
I have edited it into my question. – Brenton Horne Feb 2 '13 at 19:22
How about sage "notebook()"? – Seth Feb 2 '13 at 23:26
python: can't open file 'notebook()': [Errno 2] No such file or directory – Brenton Horne Feb 3 '13 at 0:43
I believe that sage -n or sage -notebook will be the correct terminal command. – Jaakko Seppälä Aug 20 '13 at 7:50
up vote 1 down vote accepted

You can create a shortcut that runs the command sage -n or sage -notebook.

share|improve this answer
And why is that a desktop shortcut? – A.B. May 16 '15 at 8:13
Well, it is not a shortcut. I edited the answer. – Jaakko Seppälä May 16 '15 at 8:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.