Ask Your Question
1

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.

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 -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

/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 -0500 )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 -0500 )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-11 17:53:49 -0500 )edit

Probably kill -9 1234, I suppose?

kcrisman gravatar imagekcrisman ( 2018-02-13 11:59:57 -0500 )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 16:30:29 -0500 )edit
0

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

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 -0500 )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 -0500 )edit

Could you specify where that folder is? Thanks!

j453w588 gravatar imagej453w588 ( 2018-02-15 09:01:06 -0500 )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 15:58:54 -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

Stats

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

Seen: 311 times

Last updated: Oct 31 '16