ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 21 Feb 2018 15:58:54 -0600How can I log in to my sage v 7.2 notebook?http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/ 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 token `interface='',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!!!!Mon, 31 Oct 2016 17:57:21 -0500http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/Answer by rengin for <p>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 </p>
<p>Someone said try: login admin, password sage but that gives
Error: Wrong password </p>
<p>Someone said from the terminal prompt (I am on a Mac) do
notebook(reset=True)
that gives
-bash: syntax error near unexpected token <code>reset=True'
Someone said do
notebook(interface='',secure=True)
that gives
-bash: syntax error near unexpected token</code>interface='',secure=True'</p>
<p>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.</p>
<p>HELP, PLEASE!!!!</p>
http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?answer=39364#post-id-39364Hi!
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,Wed, 01 Nov 2017 16:19:19 -0500http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?answer=39364#post-id-39364Comment by kcrisman for <p>Hi!</p>
<p>I have the same problem and I tried this solution but unfortunately sage gives me Wrong Password error when I try to login. </p>
<p>Could you please help with that, I desperately need my worksheets.</p>
<p>Best,</p>
http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=41226#post-id-41226That 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.Wed, 21 Feb 2018 15:58:54 -0600http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=41226#post-id-41226Comment by j453w588 for <p>Hi!</p>
<p>I have the same problem and I tried this solution but unfortunately sage gives me Wrong Password error when I try to login. </p>
<p>Could you please help with that, I desperately need my worksheets.</p>
<p>Best,</p>
http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=41132#post-id-41132Could you specify where that folder is? Thanks!Thu, 15 Feb 2018 09:01:06 -0600http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=41132#post-id-41132Comment by kcrisman for <p>Hi!</p>
<p>I have the same problem and I tried this solution but unfortunately sage gives me Wrong Password error when I try to login. </p>
<p>Could you please help with that, I desperately need my worksheets.</p>
<p>Best,</p>
http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=39465#post-id-39465Also, your worksheets are still there! In plain text format in `~/.sage/sage_notebook.sagenb` folder, most likely.Thu, 09 Nov 2017 14:15:17 -0600http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=39465#post-id-39465Comment by kcrisman for <p>Hi!</p>
<p>I have the same problem and I tried this solution but unfortunately sage gives me Wrong Password error when I try to login. </p>
<p>Could you please help with that, I desperately need my worksheets.</p>
<p>Best,</p>
http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=39464#post-id-39464I'd be surprised if this didn't work (the reset). Can you update this - or, better, ask a new question referring to this question?Thu, 09 Nov 2017 14:14:41 -0600http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=39464#post-id-39464Answer by kcrisman for <p>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 </p>
<p>Someone said try: login admin, password sage but that gives
Error: Wrong password </p>
<p>Someone said from the terminal prompt (I am on a Mac) do
notebook(reset=True)
that gives
-bash: syntax error near unexpected token <code>reset=True'
Someone said do
notebook(interface='',secure=True)
that gives
-bash: syntax error near unexpected token</code>interface='',secure=True'</p>
<p>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.</p>
<p>HELP, PLEASE!!!!</p>
http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?answer=35321#post-id-35321You 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 :(dMon, 31 Oct 2016 19:41:20 -0500http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?answer=35321#post-id-35321Comment by j453w588 for <p>You need to do the reset from the <em>Sage</em> command line. So first start Sage in the command line, and then do</p>
<pre><code>$ /path/to/sage
<sage startup sequence begins>
sage: notebook(reset=True)
</code></pre>
<p>The path to sage will depend; if you put it in <code>Applications</code> then it might be something like </p>
<pre><code>/Applications/Sage.app/Contents/Resources/sage/sage
</code></pre>
<p>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 <code>ps aux</code> or <code>top</code> to identify which process IDs are the problem, and then use <code>kill -9 pid</code>, where <code>pid</code> is the process id, to stop them. Sorry about all this command line stuff :(d</p>
http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=41099#post-id-41099Thanks! After I type in this line, Sage said
SyntaxError: invalid syntax
Would you happen to know how I should fix this?Tue, 13 Feb 2018 16:30:29 -0600http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=41099#post-id-41099Comment by kcrisman for <p>You need to do the reset from the <em>Sage</em> command line. So first start Sage in the command line, and then do</p>
<pre><code>$ /path/to/sage
<sage startup sequence begins>
sage: notebook(reset=True)
</code></pre>
<p>The path to sage will depend; if you put it in <code>Applications</code> then it might be something like </p>
<pre><code>/Applications/Sage.app/Contents/Resources/sage/sage
</code></pre>
<p>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 <code>ps aux</code> or <code>top</code> to identify which process IDs are the problem, and then use <code>kill -9 pid</code>, where <code>pid</code> is the process id, to stop them. Sorry about all this command line stuff :(d</p>
http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=41096#post-id-41096Probably `kill -9 1234`, I suppose?Tue, 13 Feb 2018 11:59:57 -0600http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=41096#post-id-41096Comment by j453w588 for <p>You need to do the reset from the <em>Sage</em> command line. So first start Sage in the command line, and then do</p>
<pre><code>$ /path/to/sage
<sage startup sequence begins>
sage: notebook(reset=True)
</code></pre>
<p>The path to sage will depend; if you put it in <code>Applications</code> then it might be something like </p>
<pre><code>/Applications/Sage.app/Contents/Resources/sage/sage
</code></pre>
<p>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 <code>ps aux</code> or <code>top</code> to identify which process IDs are the problem, and then use <code>kill -9 pid</code>, where <code>pid</code> is the process id, to stop them. Sorry about all this command line stuff :(d</p>
http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=41075#post-id-41075Which 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!Sun, 11 Feb 2018 17:53:49 -0600http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=41075#post-id-41075Comment by kcrisman for <p>You need to do the reset from the <em>Sage</em> command line. So first start Sage in the command line, and then do</p>
<pre><code>$ /path/to/sage
<sage startup sequence begins>
sage: notebook(reset=True)
</code></pre>
<p>The path to sage will depend; if you put it in <code>Applications</code> then it might be something like </p>
<pre><code>/Applications/Sage.app/Contents/Resources/sage/sage
</code></pre>
<p>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 <code>ps aux</code> or <code>top</code> to identify which process IDs are the problem, and then use <code>kill -9 pid</code>, where <code>pid</code> is the process id, to stop them. Sorry about all this command line stuff :(d</p>
http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=35328#post-id-35328Great! 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.Tue, 01 Nov 2016 10:39:53 -0500http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=35328#post-id-35328Comment by al for <p>You need to do the reset from the <em>Sage</em> command line. So first start Sage in the command line, and then do</p>
<pre><code>$ /path/to/sage
<sage startup sequence begins>
sage: notebook(reset=True)
</code></pre>
<p>The path to sage will depend; if you put it in <code>Applications</code> then it might be something like </p>
<pre><code>/Applications/Sage.app/Contents/Resources/sage/sage
</code></pre>
<p>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 <code>ps aux</code> or <code>top</code> to identify which process IDs are the problem, and then use <code>kill -9 pid</code>, where <code>pid</code> is the process id, to stop them. Sorry about all this command line stuff :(d</p>
http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=35326#post-id-35326Fantastic- it worked!!!!
Thanks VERY much.Tue, 01 Nov 2016 06:43:54 -0500http://ask.sagemath.org/question/35317/how-can-i-log-in-to-my-sage-v-72-notebook/?comment=35326#post-id-35326