Skip to content

Commit ccf3808

Browse files
committed
Simplify init script for trainees
1 parent 4a99bb0 commit ccf3808

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

sspcloud/init-trainees.sh

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,8 @@ sh $MY_REPO/sspcloud/restore_environment.sh
99
# Download data
1010
sh $MY_REPO/sspcloud/download_data.sh
1111

12-
13-
14-
WORK_DIR="/home/onyxia/work"
15-
GITHUB_REPOSITORY="https://github.com/InseeFrLab/AIML4OS-template-quarto-python.git"
16-
NOTEBOOK_DOWNLOAD_URL="https://inseefrlab.github.io/AIML4OS-template-quarto-python/chapters/chapter1.ipynb"
17-
BUCKET_PATH="s3/donnees-insee/diffusion/ETAT_CIVIL/2020/DECES_COM_1019.csv"
18-
DEST_DIR="$HOME/work/data"
19-
DEST_FILE="$DEST_DIR/$(basename "$BUCKET_PATH")"
20-
21-
# Download the dataset
22-
echo "Downloading $BUCKET_PATH to $DEST_FILE..."
23-
mc cp "$BUCKET_PATH" "$DEST_DIR"
24-
25-
# Download the notebook directly using curl
26-
echo $NOTEBOOK_DOWNLOAD_URL
27-
curl -L $NOTEBOOK_DOWNLOAD_URL -o "${WORK_DIR}/exercise.ipynb"
12+
# Download the notebook
13+
sh $MY_REPO/sspcloud/download_notebook.sh
2814

2915
# Ensure Quarto extension is up to date
3016
code-server --install-extension quarto.quarto

0 commit comments

Comments
 (0)