-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add jupyter notebook password
entrypoint
#2007
Conversation
records, hashes, and stores password in json config
try: | ||
os.chmod(config_file, mode) | ||
except Exception: | ||
print("Failed to set permissions on %s:" % config_file, file=sys.stderr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs from __future__ import print_function
for Py2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this only meant to be used at the command line? I'm wondering about the direct print to stderr vs using logging... Just curious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
switched to a regular warning
Minor question above, but otherwise looks good, thx! |
jupyter notebook password
entrypointjupyter notebook password
entrypoint
docs and tests added |
Great idea. I'd be comfortable with it being a top level command too, no strength behind that opinion though. |
Anything else to do on this? It looks ready to me. |
I'm all set here. |
now that we are securing notebooks by default, increasing the convenience of defining a password is more important.
Mostly copied from the
tools/secure_notebook
script. I omitted the ssl-cert-generation from that script, since I think it's less portable to platforms like Windows, and there are many more ways to do it.TODO:
cc @fperez
records, hashes, and stores password in json config