Ask Your Question
1

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

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

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.

HELP, PLEASE!!!!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

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

kcrisman gravatar image

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

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

/Applications/Sage.app/Contents/Resources/sage/sage

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

Comments

1

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

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

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 -0600 )edit
0

answered 2017-11-01 16:19:19 -0600

rengin gravatar image

Hi!

I have the same problem and I tried this solution but unfortunately sage gives me Wrong Password error when I try to login.

Could you please help with that, I desperately need my worksheets.

Best,

edit flag offensive delete link more

Comments

I'd be surprised if this didn't work (the reset). Can you update this - or, better, ask a new question referring to this question?

kcrisman gravatar imagekcrisman ( 2017-11-09 14:14:41 -0600 )edit

Also, your worksheets are still there! In plain text format in ~/.sage/sage_notebook.sagenb folder, most likely.

kcrisman gravatar imagekcrisman ( 2017-11-09 14:15:17 -0600 )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

Stats

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

Seen: 189 times

Last updated: Oct 31 '16