Ask Your Question
1

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

asked 2016-10-31 23:57:21 +0100

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-11-01 01:41:20 +0100

kcrisman gravatar image

updated 2016-11-01 01:46:12 +0100

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 12:43:54 +0100 )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 16:39:53 +0100 )edit

Which specific line of code should I type in the terminal to kill the other notebook? Suppose it has pid 1234 and I put my Sage in Applications. Thank you so much!

j453w588 gravatar imagej453w588 ( 2018-02-12 00:53:49 +0100 )edit

Probably kill -9 1234, I suppose?

kcrisman gravatar imagekcrisman ( 2018-02-13 18:59:57 +0100 )edit

Thanks! After I type in this line, Sage said SyntaxError: invalid syntax Would you happen to know how I should fix this?

j453w588 gravatar imagej453w588 ( 2018-02-13 23:30:29 +0100 )edit
0

answered 2017-11-01 22:19:19 +0100

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 21:14:41 +0100 )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 21:15:17 +0100 )edit

Could you specify where that folder is? Thanks!

j453w588 gravatar imagej453w588 ( 2018-02-15 16:01:06 +0100 )edit

That is the location of the folder. For instance, my worksheets are in ~/.sage/sage_notebook.sagenb/home/admin. ~ is the $HOME folder, in Linux terminology.

kcrisman gravatar imagekcrisman ( 2018-02-21 22:58:54 +0100 )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 23:57:21 +0100

Seen: 799 times

Last updated: Nov 01 '16