-
Notifications
You must be signed in to change notification settings - Fork 0
/
postBuild
41 lines (34 loc) · 1.06 KB
/
postBuild
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
#!/bin/sh
# take care of source extensions
# NOTE: not required for pre-packaged conda extensions (source extensions only)
# if jupyter lab starts and shows "it needs to be re-built" then these are required
EXTENSIONS="igv"
if [ -z "$EXTENSIONS" ]; then
echo "no extensions to install."
else
echo "installing extensions, nodejs is required"
for EXT in $EXTENSIONS; do
echo "installing $EXT"
jupyter labextension install --no-build $EXT
jupyter labextension enable $EXT
done
echo "rebuild jupyter lab"
jupyter lab build
jupyter lab clean -y
fi
# EXT_TO_ENABLE="igv"
# if [ -z "$EXT_TO_ENABLE" ]; then
# echo "no extensions to enable."
# else
# echo "enabling extensions"
# for EXT in $EXT_TO_ENABLE; do
# echo "enabling $EXT"
# jupyter serverextension enable --py $EXT --sys-prefix
# jupyter labextension enable $EXT --sys-prefix
# jupyter nbextension install --py $EXT --sys-prefix
# jupyter nbextension enable --py $EXT --sys-prefix
# done
# echo "rebuild jupyter lab"
# jupyter lab build
# jupyter lab clean -y
# fi