├── README.md └── installations.sh /README.md: -------------------------------------------------------------------------------- 1 | # Jupyter-Lab-Environment 2 | Configuring the JupyterLab Environment for CSC Notebooks 3 | -------------------------------------------------------------------------------- /installations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cd /home/jovyan/work 4 | # git reflog requires a name and email if user is not in passwd 5 | # even if you're only cloning 6 | export GIT_COMMITTER_NAME=anonymous 7 | export GIT_COMMITTER_EMAIL=anon@localhost 8 | 9 | # Grab notebooks repository 10 | NOTEBOOK_DIR='/home/jovyan/work/notebooks' 11 | if [ -d "$NOTEBOOK_DIR" ]; then 12 | # Change directories and pull 13 | cd "$NOTEBOOK_DIR" 14 | git pull origin master 15 | else 16 | # Clone the notebooks directory 17 | git clone https://github.com/geo-python/notebooks.git 18 | fi 19 | 20 | # Create exercises directory if it doesn't exist 21 | EXERCISE_DIR='/home/jovyan/work/exercises' 22 | if [ ! -d "$EXERCISE_DIR" ]; then 23 | mkdir $EXERCISE_DIR 24 | fi 25 | 26 | # Go to containing folder 27 | cd "$NOTEBOOK_DIR"/notebooks 28 | --------------------------------------------------------------------------------