First time here? Check out the FAQ!

Ask Your Question
1

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

asked 8 years ago

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

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 8 years ago

kcrisman gravatar image

updated 8 years ago

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

Preview: (hide)
link

Comments

1

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

al gravatar imageal ( 8 years ago )
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 ( 8 years ago )

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 ( 7 years ago )

Probably kill -9 1234, I suppose?

kcrisman gravatar imagekcrisman ( 7 years ago )

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 ( 7 years ago )
0

answered 7 years ago

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,

Preview: (hide)
link

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 ( 7 years ago )

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

kcrisman gravatar imagekcrisman ( 7 years ago )

Could you specify where that folder is? Thanks!

j453w588 gravatar imagej453w588 ( 7 years ago )

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 ( 7 years ago )

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: 8 years ago

Seen: 838 times

Last updated: Nov 01 '16