Skip to content

Commit 62f9fe3

Browse files
committed
Add an init script
1 parent eef4816 commit 62f9fe3

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

sspcloud/restore_environment.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Change directory
2+
cd $MY_REPO
3+
4+
# Create a virtual environment and install project dependencies
5+
uv sync
6+
7+
# Change directory
8+
cd ..
9+
10+
# Set VSCode's default interpreter path
11+
mkdir -p .vscode
12+
echo "{ \"python.defaultInterpreterPath\": \"./$MY_REPO/.venv/bin/python\" }" >> .vscode/settings.json
13+
14+
# Set Quarto default interpreter path
15+
export QUARTO_PYTHON=./$MY_REPO/.venv/bin/python

0 commit comments

Comments
 (0)