Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ipython/Jupyter notebook with authentication

I am using Jupyter on a [spark] cluster which has a public ip address. I want to make sure I am the only one that can see, change and basically has access to this notebook. How can I make this notebook whenever I open it to ask for some username/password by connecting it to PAM or something else?

like image 413
M.Rez Avatar asked Jun 14 '16 09:06

M.Rez


1 Answers

You can configure Jupyter with a fixed password and HTTPS so you can expose it to the public internet and not let everyone in. Here are the docs for that.

If you want to connect it to separate authentication like PAM, there's a separate layer called Jupyterhub which can manage logins and starting notebook servers for logged in users.

like image 91
Thomas K Avatar answered Oct 20 '22 10:10

Thomas K