Created
September 19, 2016 20:06
-
-
Save yhilpisch/4b9ca48323d1f5c33002805542af8f54 to your computer and use it in GitHub Desktop.
Jupyter Server Meetup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c.NotebookApp.certfile='/cert.pem' | |
c.NotebookApp.keyfile='/cert.key' | |
c.NotebookApp.password='sha1:768ce7b87bf6:fa6013a02f7053bc014ef7c65be0ef34f77f21fd' | |
c.NotebookApp.ip='*' | |
c.NotebookApp.port=8888 | |
c.NotebookApp.open_browser=False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Python | |
# | |
apt-get update | |
apt-get install htop | |
apt-get autoremove | |
# Miniconda | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O Miniconda3.sh | |
bash Miniconda3.sh -b | |
rm Miniconda3.sh | |
export PATH="/root/miniconda3/bin:$PATH" | |
cat >> /root/.profile << EOF | |
export PATH="/root/miniconda3/bin:$PATH" | |
EOF | |
# Python Packages | |
conda install -y jupyter | |
conda install -y pandas matplotlib pandas-datareader seaborn | |
conda install -y scikit-learn | |
# Jupyter | |
mkdir /root/.jupyter | |
mv /jupyter_notebook_config.py /root/.jupyter | |
mkdir /root/notebook | |
cd /root/notebook | |
jupyter notebook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Server | |
# | |
IP=$1 | |
scp jupyter_notebook_config.py setup_python.sh cert.key cert.pem root@ | |
${IP}:/ | |
ssh root@${IP} /bin/bash /setup_python.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment