-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-extensions.bash
54 lines (40 loc) · 1.85 KB
/
install-extensions.bash
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
set -ex
# make sure we don't do anything funky with user's $HOME
# since this is run as root
unset HOME
# required extensions
${NB_PYTHON_PREFIX}/bin/jupyter nbextension enable --py --sys-prefix widgetsnbextension
# ipyleaflet
${NB_PYTHON_PREFIX}/bin/jupyter labextension install jupyter-leaflet
${NB_PYTHON_PREFIX}/bin/jupyter nbextension enable --py --sys-prefix ipyleaflet
# voila
${NB_PYTHON_PREFIX}/bin/jupyter nbextension install voila --sys-prefix --py
${NB_PYTHON_PREFIX}/bin/jupyter nbextension enable voila --sys-prefix --py
# voila preview on jupyter lab (voila is used via notebook, not via lab)
### ${NB_PYTHON_PREFIX}/bin/jupyter labextension install @jupyter-voila/jupyterlab-preview
# geojson
${NB_PYTHON_PREFIX}/bin/jupyter labextension install @jupyterlab/geojson-extension
# sidecar
${NB_PYTHON_PREFIX}/bin/pip install sidecar
${NB_PYTHON_PREFIX}/bin/jupyter labextension install @jupyter-widgets/jupyterlab-sidecar
# templates
#${NB_PYTHON_PREFIX}/bin/pip install jupyterlab_templates
#${NB_PYTHON_PREFIX}/bin/jupyter labextension install jupyterlab_templates
#${NB_PYTHON_PREFIX}/bin/jupyter serverextension enable jupyterlab_templates --py
# bash kernel
${NB_PYTHON_PREFIX}/bin/pip install bash_kernel
${NB_PYTHON_PREFIX}/bin/python -m bash_kernel.install
# table of contents
${NB_PYTHON_PREFIX}/bin/jupyter labextension install @jupyterlab/toc
# collapsible headings
${NB_PYTHON_PREFIX}/bin/jupyter labextension install @aquirdturtle/collapsible_headings
# server proxy
${NB_PYTHON_PREFIX}/bin/pip install jupyter-server-proxy
#${NB_PYTHON_PREFIX}/bin/jupyter serverextension enable --sys-prefix jupyter_server_proxy
${NB_PYTHON_PREFIX}/bin/jupyter labextension install @jupyterlab/server-proxy
# Remove the pip cache created as part of installing sidecar
rm -rf /root/.cache
rm -fr /tmp/npm*
rm -fr /tmp/yarn*
rm -fr /tmp/v8-compile-cache-*