-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·30 lines (24 loc) · 841 Bytes
/
setup.sh
File metadata and controls
executable file
·30 lines (24 loc) · 841 Bytes
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
27
28
29
30
#!/bin/bash
set -e
set -x
# Create environment:
conda update -n base conda -y
conda env create --name good --force -q
# Start environment:
source activate good
# Update environment (might break stuff. move fast!?)
conda update --all --yes
# Get local copy of data
git clone --single-branch --depth=1 https://github.com/DeltaAnalytics/machine_learning_for_good_data data
# Setup spell checking and other notebook enhancements
git clone https://github.com/Calysto/notebook-extensions.git
cd notebook-extensions
jupyter nbextension install calysto --user
jupyter nbextension enable calysto/spell-check/main
jupyter nbextension enable calysto/cell-tools/main
jupyter nbextension enable calysto/annotate/main
rm -r -f notebook-extensions
# Start Jupyter Notebook
if [[ "$1" != "--no-start" ]]; then
jupyter notebook --browser=Chrome
fi