-
Notifications
You must be signed in to change notification settings - Fork 37
/
cloud-nine-install.sh
26 lines (22 loc) · 1.13 KB
/
cloud-nine-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda install -q -y conda
conda update -q conda
conda create -y -n bw2 python=3.6
source activate bw2
conda install -q -y wheel
conda update -q wheel pip setuptools
conda install -y -q -c conda-forge -c cmutel -c haasad brightway2 jupyter matplotlib
jupyter notebook --generate-config
echo 'c.NotebookApp.tornado_settings = {"headers": {"Content-Security-Policy": "frame-ancestors '\''self'\'' https://ide.c9.io "}}' >> /home/ubuntu/.jupyter/jupyter_notebook_config.py
echo '#!/bin/bash' > run_notebook.sh
echo 'export PATH="$HOME/miniconda/bin:$PATH"' >> run_notebook.sh
echo 'source activate bw2' >> run_notebook.sh
echo 'cd notebooks' >> run_notebook.sh
echo 'jupyter notebook --ip=0.0.0.0 --port=8080 --no-browser' >> run_notebook.sh
chmod +x run_notebook.sh
mkdir notebooks && cd notebooks
wget https://github.com/brightway-lca/brightway2/raw/master/notebooks/Getting%20Started%20with%20Brightway2.ipynb
jupyter notebook --ip $IP --port $PORT --no-browser