-
Notifications
You must be signed in to change notification settings - Fork 18
/
postBuild
executable file
·49 lines (47 loc) · 1.82 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
#!/bin/bash
# in case no home (windows?)
if [ -z "$HOME" ] ; then
here="$(pwd)"
cd ~
HOME="$(pwd)"
cd "$here"
fi
echo "----> bin/postBuild"
echo "--> enabling jupyter nbextensions"
jupyter nbextension enable contrib_nbextensions_help_item/main
jupyter nbextension enable autosavetime/main
jupyter nbextension enable codefolding/main
jupyter nbextension enable code_font_size/code_font_size
jupyter nbextension enable code_prettify/code_prettify
jupyter nbextension enable collapsible_headings/main
jupyter nbextension enable comment-uncomment/main
jupyter nbextension enable equation-numbering/main
#jupyter nbextension enable execute_time/ExecuteTime
jupyter nbextension enable gist_it/main
jupyter nbextension enable hide_input/main
jupyter nbextension enable spellchecker/main
#jupyter nbextension enable toc2/main
jupyter nbextension enable toggle_all_line_numbers/main
jupyter nbextension enable exercise2/main
jupyter nbextension disable toc2/main
jupyter nbextension disable execute_time/ExecuteTime
jupyter nbextension disable hinterland/hinterland
jupyter nbextension enable printview/main
jupyter nbextension enable execution_dependencies/execution_dependencies
jupyter nbextension enable python-markdown/main
#jupyter labextension install @jupyterlab/latex
echo "--> ensuring $HOME/.jupyter/nbconfig exists"
mkdir -p $HOME/.jupyter/nbconfig
echo "--> fixing $HOME/.jupyter/nbconfig/common.json"
echo '{"nbext_hide_incompat": true}' > $HOME/.jupyter/nbconfig/common.json
echo "conda activate geog0111" >> ~/.bashrc
#cd geog0111/notebooks && tar xvzf data/cacheData.tar.Z
pwd
whoami
ls
#mamba activate geog0111
python -m ipykernel install --name=conda-env-geog0111-geog0111-py --display-name 'conda env:geog0111-geog0111' --user
#echo "test gdal"
#python -c ‘import gdal; print(gdal.VersionInfo())’
#echo "done"
echo "----> done bin/postBuild"