/
postBuild
117 lines (93 loc) · 2.97 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/usr/bin/env bash
set -eux
mamba env update --file mamba.yml --prefix ${NB_PYTHON_PREFIX}
python -m pidgy kernel install
# TODO: get working
# python -m calysto_hy install
python -m pip check || echo "uh oh"
# oddly-misbehaving
jupyter serverextension enable --sys-prefix --py jupyterlab_git
jupyter serverextension list
# download chromium (bleah)
jupyter drawio-export provision
# tries to install in ~/.jupyter otherwise
JUPYTER_CONFIG_DIR=${NB_PYTHON_PREFIX}/etc/jupyter \
julia -e 'using WebIO; WebIO.install_jupyter_serverextension()'
jupyter labextension install $(cat labex.txt) --no-build --debug
# On-going Issue
# https://github.com/JuliaGizmos/WebIO.jl/issues/397#issuecomment-654146183
git clone https://github.com/lcontento/WebIO.jl webio
pushd webio/packages
git checkout 183167d49995ac213ecc2436af4ec54718b7c69d
jlpm --ignore-optional || jlpm || echo "well, let's try anyway"
jlpm add --dev "typescript@~3.4"
jlpm lerna bootstrap
jlpm build
pushd jupyter-lab-provider
jupyter labextension install $(npm pack .) --no-build --debug
popd
popd
git clone https://github.com/bollwyvl/jupyterlab-lsp.git
pushd jupyterlab-lsp
git checkout add-language-server-kernel
python -m pip install -e .
jupyter lsp kernelspec install
jlpm --ignore-optional || jlpm || echo "well, let's try anyway"
jlpm bootstrap
jlpm lab:link
popd
# get the node-based language servers
jlpm add --dev \
bash-language-server \
dictionary-en \
dockerfile-language-server-nodejs \
javascript-typescript-langserver \
unified-language-server \
vscode-css-languageserver-bin \
vscode-html-languageserver-bin \
vscode-json-languageserver-bin \
yaml-language-server@0.4 \
git clone https://github.com/bollwyvl/jupyterlab-outsource.git
pushd jupyterlab-outsource
git checkout upgrade-jlab2
jlpm --ignore-optional || jlpm || echo "well, let's try anyway"
jlpm bootstrap
jlpm lerna exec -- npm pack .
jupyter labextension install \
./src/_core/*.tgz \
./src/prosemirror/*.tgz \
./src/blockly/*.tgz \
--no-build \
--debug
popd
git clone https://github.com/bollwyvl/jupyter-videochat.git
pushd jupyter-videochat
git checkout add-url-router
jlpm
jlpm build
npm pack
jupyter labextension install \
./jupyterlab-videochat-*.tgz \
--no-build \
--debug
popd
git clone https://github.com/bollwyvl/wxyz
pushd wxyz
git checkout jlab2
doit -n4 setup_py_dev ts
jupyter labextension install --debug --no-build $(find src/ts | grep tgz)
popd
jupyter labextension disable @jupyterlab/extensionmanager-extension
jupyter labextension list
mkdir .tmp
pushd .tmp
jupyter lab build --debug --dev-build=False --minimize=False || echo "didn't work, continuing anyway"
popd
conda clean -yaf
jlpm cache clean
mkdir -p ${NB_PYTHON_PREFIX}/share/jupyter/lab/settings
cp overrides.json ${NB_PYTHON_PREFIX}/share/jupyter/lab/settings
python -m pip check || echo "uh oh"
jupyter serverextension list
jupyter kernelspec list
jupyter labextension list