Ask Your Question
2

disable sage notebook password

asked 2011-11-19 14:02:10 +0100

sagefan gravatar image

I find it annoying to have to type a password to access my local sage notebook worksheets. Is there any way to disable the password? It makes no sense for my local installation.

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
2

answered 2011-11-19 18:42:28 +0100

Kelvin Li gravatar image

Try:

sage: notebook(require_login=False)

at a Sage prompt, or:

$ sage --notebook require_login=False

from a terminal. This is behavior documented in the docstring:

sage: notebook?

See the third item under the "EXAMPLES" section.

edit flag offensive delete link more

Comments

Thanks, it works!

sagefan gravatar imagesagefan ( 2011-11-20 12:22:53 +0100 )edit
2

answered 2013-03-19 20:39:51 +0100

bloft gravatar image

After resetting the password, i tried

sage: notebook(require_login=False)

and received an error.

It was then suggested that I try

sage: notebook(automatic_login=True)

in order to automatically login as admin.

edit flag offensive delete link more

Comments

Yes, the interface to the notebook changed a few releases ago, so that the accepted answer is no longer true. Doing `sage: notebook?` still will give you the documentation one needs, luckily.

kcrisman gravatar imagekcrisman ( 2013-03-19 21:29:49 +0100 )edit
0

answered 2013-08-24 11:34:21 +0100

using sage notebook 5.11

sage -c "notebook(secure=False, automatic_login=True)"

only landed me at the notebook's login page (so i initially thought the feature only by-passed some internal 'server'), but on trying another browser, i discovered that explicitly setting the browser via the SAGE_BROWSER environment variable gets this working as i'd hoped (i.e. straight through to the worksheet selection/create page and logged-in as 'admin')

SAGE_BROWSER=firefox sage -c "notebook(secure=False, automatic_login=True)"

possibly a bug then..

edit flag offensive delete link more

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: 2011-11-19 14:02:10 +0100

Seen: 2,454 times

Last updated: Aug 24 '13