Skip to content

Commit 57cddd8

Browse files
committed
Improving the init script
1 parent c836ad0 commit 57cddd8

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

init.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,21 @@
33
# Get the name of the repo
44
MY_REPO=$(ls -d "/home/onyxia/work"/*/ | head -n 1 | xargs basename)
55

6+
# Change directory
7+
cd $MY_REPO
8+
69
# Create a virtual environment and install project dependencies
7-
uv sync -r $MY_REPO/pyproject.toml
10+
uv sync
11+
12+
# Change directory
13+
cd ..
14+
15+
# Set VSCode's default interpreter path
16+
mkdir -p .vscode
17+
echo "{ \"python.defaultInterpreterPath\": \"./$MY_REPO/.venv/bin/python\" }" > .vscode/settings.json
18+
19+
# Set Quarto default interpreter path
20+
export QUARTO_PYTHON=./$MY_REPO/.venv/bin/python
821

922
# Download data
10-
sh $MY_REPO/download_data.sh
23+
sh $MY_REPO/download_data.sh

0 commit comments

Comments
 (0)