-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·34 lines (26 loc) · 1.01 KB
/
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
27
28
29
30
31
32
33
#!/usr/bin/env bash
sudo apt install liboctave-dev
sudo apt install octave
# Need this for pdf exports
sudo apt install texlive-xetex texlive-fonts-recommended texlive-plain-generic
# pkg install -forge ocl # required for ode 45
# pkg install -forge optim # required for LP
sudo apt install virtualenv
echo "CREATE, ACTIVATE VENV"
virtualenv venv -p python3
source venv/bin/activate
echo "PYTHON INSTALLS"
pip install -r requirements.txt
echo "R INSTALLS"
sudo apt install r-base
sudo apt install libcurl4-openssl-dev
echo "r = getOption('repos'); r['CRAN'] = 'https://cran.csiro.au/'; options(repos = r); install.packages('IRkernel')" | R --vanilla
echo "IRkernel::installspec()" | sudo --vanilla
echo "SETUP VIM KEYS"
# Create required directory in case (optional)
mkdir -p $(jupyter --data-dir)/nbextensions
# Clone the repository
cd $(jupyter --data-dir)/nbextensions
git clone https://github.com/lambdalisue/jupyter-vim-binding vim_binding
# Activate the extension
jupyter nbextension enable vim_binding/vim_binding