-
-
Notifications
You must be signed in to change notification settings - Fork 113
Create a Jupyter notebook in JuNest
Filippo Squillace edited this page May 21, 2017
·
5 revisions
The following scripts will install Jupyter and all its dependencies via the jupyter-install.sh gist and run a Jupyter Notebook.
The first script will run a simple notebook server based on token auth and without any encryption for the transportation. The second script, instead, will create a password for authenticating to the notebook and generate a SSL certificate for the encryption.
# Install Jupiter and all deps
JUNEST_HOME=~/.junest-jupyter junest -f bash -c '
pacman --noconfirm -Sy python-pip;
curl -sL https://git.io/vHTfc | bash'
# Run the Jupyter notebook
JUNEST_HOME=~/.junest-jupyter junest jupyter notebook --no-browser
You will need to enter a new password and provide information about the SSL certificate you are going to generate. Bear in mind that your browser may warn that your self-signed certificate is insecure or unrecognized, therefore, you will need to add an exception for it.
# Install Jupiter and all deps
JUNEST_HOME=~/.junest-jupyter junest -f bash -c '
pacman --noconfirm -Sy python-pip;
curl -sL https://git.io/vHTfc | bash'
# Generate password and certificate
JUNEST_HOME=~/.junest-jupyter junest bash -c '
jupyter notebook password;
openssl req -x509 -nodes -newkey rsa:1024 -keyout ~/.jupyter/jupyter-key.key -out ~/.jupyter/jupyter-cert.pem'
# Run the Jupyter notebook
JUNEST_HOME=~/.junest-jupyter junest jupyter notebook --ip=* --no-browser --certfile ~/.jupyter/jupyter-cert.pem --keyfile ~/.jupyter/jupyter-key.key