-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpostBuild
More file actions
24 lines (20 loc) · 849 Bytes
/
postBuild
File metadata and controls
24 lines (20 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash -e
# add our FAQ to the help menu
# git clone https://github.com/LibreTexts/labextension-libretexts-faq.git
# cd labextension-libretexts-faq/
# jupyter labextension install .
# cd .. && rm -rf labextension-libretexts-faq/
# run to make sure all extensions are installed correctly
jupyter lab build
# create nbgrader_config to use ngshare as the exchange
# this allows nbgrader to be used on Z2JH
cat <<EOF > /srv/conda/envs/notebook/etc/jupyter/nbgrader_config.py
from ngshare_exchange import configureExchange
c=get_config()
configureExchange(c, 'http://ngshare:8080/services/ngshare')
c.CourseDirectory.course_id = '*'
EOF
# add ~/.conda/envs to the top of default env directories
# this way, newly created conda envs will be in ~
# which will get persisted
echo -e "envs_dirs:\n - /home/$USER/.conda/envs" >> /srv/conda/.condarc