We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c836ad0 commit 57cddd8Copy full SHA for 57cddd8
1 file changed
init.sh
@@ -3,8 +3,21 @@
3
# Get the name of the repo
4
MY_REPO=$(ls -d "/home/onyxia/work"/*/ | head -n 1 | xargs basename)
5
6
+# Change directory
7
+cd $MY_REPO
8
+
9
# Create a virtual environment and install project dependencies
-uv sync -r $MY_REPO/pyproject.toml
10
+uv sync
11
12
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
21
22
# Download data
-sh $MY_REPO/download_data.sh
23
+sh $MY_REPO/download_data.sh
0 commit comments