From 5801a819e9e058e360e0ee983c688e87e0fa778e Mon Sep 17 00:00:00 2001 From: Christian Risi <75698846+CnF-Gris@users.noreply.github.com> Date: Fri, 26 Sep 2025 18:49:06 +0200 Subject: [PATCH] Added vars to make it easier to work here --- .vscode/settings.json | 39 +++++++++++++++++++++++++++++++++++++++ README.md | 21 ++++++++++++++++++++- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..1d34b01 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,39 @@ +{ + // For linux + "terminal.integrated.env.linux": { + "PYTHONPATH": "${workspaceFolder}" + }, + // For OSX + "terminal.integrated.env.osx": { + "PYTHONPATH": "${workspaceFolder}" + }, + // For Windows + "terminal.integrated.env.windows": { + "PYTHONPATH": "${workspaceFolder}" + } +} + +// { +// // Always treat the project root as the working dir for Jupyter +// "jupyter.notebookFileRoot": "${workspaceFolder}", +// +// // When you click "Run Python File in Terminal", DON'T cd into the file's folder +// "python.terminal.executeInFileDir": false, +// +// // Start new integrated terminals at the project root +// "terminal.integrated.cwd": "${workspaceFolder}", +// +// // Ensure Python can import from the project root no matter which file you run +// // (so `src/` is on sys.path). Linux shown here; add osx/windows if needed. +// "terminal.integrated.env.windows": { +// "PYTHONPATH": "${workspaceFolder}" +// }, +// +// // Make pytest run from the root without needing a pytest.ini +// "python.testing.pytestEnabled": true, +// "python.testing.cwd": "${workspaceFolder}", +// "python.testing.pytestArgs": ["src/test"], +// +// // Help Pylance resolve imports like `from src...` without red squiggles +// "python.analysis.extraPaths": ["${workspaceFolder}"] +// } \ No newline at end of file diff --git a/README.md b/README.md index 1789589..1aec207 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,30 @@ Create and activate you Conda enviroment with: conda env create -f environment.yaml conda activate deep_learning - + Now install dependencies on pip: pip install -r requirements.txt +Add the following on .vscode/settings.json + + ```json + { + // For linux + "terminal.integrated.env.linux": { + "PYTHONPATH": "${workspaceFolder}" + }, + // For OSX + "terminal.integrated.env.osx": { + "PYTHONPATH": "${workspaceFolder}" + }, + // For Windows + "terminal.integrated.env.windows": { + "PYTHONPATH": "${workspaceFolder}" + } + } + ``` + ## TroubleShooting Sometimes when uploading really large batch of data, git can stop the uploads thanks to the timeout.