-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirst_setup
executable file
·38 lines (33 loc) · 1.07 KB
/
first_setup
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
34
35
36
37
38
if ! [ -x "$(command -v brew)" ]; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
if ! [ -x "$(command -v node)" ]; then
brew install node
fi
if ! [ -x "$(command -v poetry)" ]; then
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3
fi
jupyter_exts=( \
"@jupyter-widgets/jupyterlab-manager" \
"@aquirdturtle/collapsible_headings" \
"@jupyterlab/commenting-extension" \
"@jupyterlab/toc" \
"@krassowski/jupyterlab_go_to_definition" \
"@ryantam626/jupyterlab_code_formatter" \
"dask-labextension" \
"jupyterlab-dash" \
"jupyterlab-plotly" \
"jupyterlab-spreadsheet" \
"@jupyterlab/debugger" \
)
server_exts=( \
"jupyterlab_code_formatter" \
"dask_labextension" \
"jupyterlab-dash" \
"jupyterlab-git" \
)
echo "Installing Jupyterlab extentions:"
echo ${jupyter_exts[*]}
poetry add -D ${server_exts[*]}
poetry run jupyter labextension install ${jupyter_exts[*]}
poetry run jupyter serverextension enable ${server_exts[*]}