Skip to content

Commit 7233367

Browse files
authored
Update init.sh
1 parent 809363e commit 7233367

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

init.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/bash
2-
2+
LANGUAGE=$1
33
# Clone course repository
44
REPO_URL="https://github.com/InseeFrLab/funathon2023_sujet3.git"
55
CLONE_DIR="/home/onyxia/work/funathon-sujet3"
66
git clone --depth 1 $REPO_URL $CLONE_DIR
77
cd $CLONE_DIR
88

99
# Install required packages
10-
pip install -r requirements_Python.txt
10+
pip install -r requirements_"$LANGUAGE".txt
1111

1212
# Open the relevant notebook when starting Jupyter Lab
1313
jupyter server --generate-config
14-
echo "c.LabApp.default_url = '/lab/tree/funathon-sujet3/Sujet_3_Python.ipynb'" >> /home/onyxia/.jupyter/jupyter_server_config.py
14+
echo "c.LabApp.default_url = '/lab/tree/funathon-sujet3/Sujet_3_$LANGUAGE.ipynb'" >> /home/onyxia/.jupyter/jupyter_server_config.py

0 commit comments

Comments
 (0)