File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33WORK_DIR=" /home/onyxia/work"
44GITHUB_REPOSITORY=" https://github.com/InseeFrLab/AIML4OS-template-quarto-python.git"
55NOTEBOOK_DOWNLOAD_URL=" https://inseefrlab.github.io/AIML4OS-template-quarto-python/chapters/chapter1.ipynb"
6+ BUCKET_PATH=" s3/donnees-insee/diffusion/ETAT_CIVIL/2020/DECES_COM_1019.csv"
7+ DEST_DIR=" $HOME /work/data"
8+ DEST_FILE=" $DEST_DIR /$( basename " $BUCKET_PATH " ) "
69
710
811# Download the pyproject.toml directly using git
@@ -13,6 +16,10 @@ git clone --depth 1 $GITHUB_REPOSITORY temp
1316uv pip install -r temp/pyproject.toml --system
1417rm -rf temp
1518
19+ # Download the dataset
20+ echo " Downloading $BUCKET_PATH to $DEST_FILE ..."
21+ mc cp " $BUCKET_PATH " " $DEST_DIR "
22+
1623# Download the notebook directly using curl
1724echo $NOTEBOOK_DOWNLOAD_URL
1825curl -L $NOTEBOOK_DOWNLOAD_URL -o " ${WORK_DIR} /exercise.ipynb"
You can’t perform that action at this time.
0 commit comments