Skip to content

Instantly share code, notes, and snippets.

@yhilpisch
Created September 19, 2016 20:06
Show Gist options
  • Save yhilpisch/4b9ca48323d1f5c33002805542af8f54 to your computer and use it in GitHub Desktop.
Save yhilpisch/4b9ca48323d1f5c33002805542af8f54 to your computer and use it in GitHub Desktop.
Jupyter Server Meetup
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
#
# 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
#
# 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