Ask Your Question

How can I log in to my sage v 7.2 notebook?

asked 2016-10-31 17:57:21 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I remember my password but apparently forgot my username, so when I try to log in from the browser I get Error: Username is not in the system

Someone said try: login admin, password sage but that gives Error: Wrong password

Someone said from the terminal prompt (I am on a Mac) do notebook(reset=True) that gives -bash: syntax error near unexpected token reset=True' Someone said do notebook(interface='',secure=True) that gives -bash: syntax error near unexpected tokeninterface='',secure=True'

This seems totally insane since my copy of SAGE is for my personal use only, so there should logically be no need for a login, and all I did was force-quit SAGE to restart the computer and create disk space, and now I am locked out of my own worksheets.


edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2016-10-31 19:41:20 -0500

kcrisman gravatar image

updated 2016-10-31 19:46:12 -0500

You need to do the reset from the Sage command line. So first start Sage in the command line, and then do

$ /path/to/sage
<sage startup sequence begins>
sage: notebook(reset=True)

The path to sage will depend; if you put it in Applications then it might be something like


Edit: I am not sure where it went but I saw some update about two notebooks running ... this would happen if you accidentally ended up opening two while doing this. In which case you'll have to use commands like ps aux or top to identify which process IDs are the problem, and then use kill -9 pid, where pid is the process id, to stop them. Sorry about all this command line stuff :(d

edit flag offensive delete link more



Fantastic- it worked!!!! Thanks VERY much.

al gravatar imageal ( 2016-11-01 06:43:54 -0500 )edit

Great! If this solved your problem, be sure to check the little check mark so future users will know the question has a sufficient answer - I have a feeling this isn't the last time this question will be asked.

kcrisman gravatar imagekcrisman ( 2016-11-01 10:39:53 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-10-31 17:57:21 -0500

Seen: 163 times

Last updated: Oct 31 '16