mirror of
https://github.com/fsquillace/junest.git
synced 2026-01-23 02:34:30 +00:00
Page:
Create a Jupyter notebook in JuNest
Pages
Automatic fallback to Junest for not found commands in the native Linux system
Configure Nvidia GPU drivers for use with PyTorch and CUDA
Create a Jupyter notebook in JuNest
Home
How to build a JuNest image using QEMU
How to create desktop launchers on programs installed in JuNest
How to install Tomighty in JuNest
How to run JuNest as a container
How to run services using Systemd
How to use JuNest within Travis CI
Linux distros with user namespace enabled by default
Pass audio through to Pulseaudio in host OS
No results
5
Create a Jupyter notebook in JuNest
Filippo Squillace edited this page 2017-05-21 19:03:31 +01:00
Table of Contents
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.
Running a simple notebook server
# 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
Running a public notebook server
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