Skip to content

Commit 9748f17

Browse files
committed
some binder tweaks
1 parent 2e01d56 commit 9748f17

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

binder/overrides.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"@krassowski/jupyterlab-lsp/plugin": {
3+
"language_servers": {
4+
"robotframework_ls": {
5+
"serverSettings": {
6+
"robot.lint.robocop.enabled": true
7+
}
8+
},
9+
"texlab": {
10+
"serverSettings": {
11+
"latex.lint.onChange": true
12+
}
13+
},
14+
"pyright": {
15+
"serverSettings": {
16+
"python.analysis.useLibraryCodeForTypes": true
17+
}
18+
}
19+
}
20+
}
21+
}

binder/postBuild

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,23 @@ jlpm bootstrap
66

77
# Do a dev install of the server side
88
pushd python_packages/jupyter_lsp
9-
python setup.py sdist bdist_wheel
10-
python -m pip install -e . --ignore-installed --no-deps -vv
11-
jupyter serverextension enable --sys-prefix --py jupyter_lsp
9+
python setup.py sdist bdist_wheel
10+
python -m pip install -e . --ignore-installed --no-deps -vv
11+
jupyter serverextension enable --sys-prefix --py jupyter_lsp
1212
popd
1313

1414
# Install the labextension
1515
pushd python_packages/jupyterlab_lsp
16-
python setup.py sdist bdist_wheel
17-
python -m pip install -e . --ignore-installed --no-deps -vv
18-
jupyter labextension develop . --overwrite
16+
python setup.py sdist bdist_wheel
17+
python -m pip install -e . --ignore-installed --no-deps -vv
18+
jupyter labextension develop . --overwrite
1919
popd
20+
2021
# List extensions
2122
jupyter serverextension list
2223
jupyter server extension list
2324
jupyter labextension list
25+
26+
if [ "$NB_USER" = "jovyan" ]; then
27+
cp binder/overrides.json $NB_PYTHON_PREFIX/share/jupyter/lab/settings/
28+
fi

0 commit comments

Comments
 (0)