-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostBuild
24 lines (18 loc) · 1012 Bytes
/
postBuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Docs: https://mybinder.readthedocs.io/en/latest/config_files.html#postbuild-run-code-after-installing-the-environment
# Notebooks w/ extensions that auto-run code must be "trusted" to work the first time
jupyter trust viewer.ipynb
# enable dask labextension
jupyter serverextension enable --py nbserverproxy --sys-prefix
jupyter labextension install @jupyter-widgets/[email protected] \
@jupyterlab/[email protected] \
@pyviz/jupyterlab_pyviz \
itk-jupyter-widgets \
jupyter-leaflet
git clone --single-branch -b serverextension https://github.com/ian-r-rose/dask-labextension.git
cd dask-labextension
npm install # Install npm package dependencies
npm run build # Compile the TypeScript sources to Javascript
jupyter labextension install # Install the current directory as an extension
pip install -e .
jupyter serverextension enable --sys-prefix dask_labextension