From 1a23748d412d0cc4c06ce8548d54685834b94287 Mon Sep 17 00:00:00 2001 From: Daniel Razavi Date: Mon, 20 Oct 2025 15:40:20 -0400 Subject: [PATCH] Revert "Migrate module setup to uv" --- .gitignore | 3 - .../additional_resources/labs/lab_10.ipynb | 0 .../additional_resources/labs/lab_8.ipynb | 0 .../additional_resources/labs/lab_9.ipynb | 0 .../live_code/.keep | 0 README.md | 20 +++--- SETUP.md | 66 ------------------- pyproject.toml | 21 ------ 8 files changed, 8 insertions(+), 102 deletions(-) rename {04_this_cohort => 04_cohort_six}/additional_resources/labs/lab_10.ipynb (100%) rename {04_this_cohort => 04_cohort_six}/additional_resources/labs/lab_8.ipynb (100%) rename {04_this_cohort => 04_cohort_six}/additional_resources/labs/lab_9.ipynb (100%) rename {04_this_cohort => 04_cohort_six}/live_code/.keep (100%) delete mode 100644 SETUP.md delete mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore index 68c77f64e..b159d3f2a 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,3 @@ 02_activities/assignments/best_model/ 02_activities/assignments/*.zip 02_activities/assignments/*.txt -.venv -uv.lock -deep-learning-env \ No newline at end of file diff --git a/04_this_cohort/additional_resources/labs/lab_10.ipynb b/04_cohort_six/additional_resources/labs/lab_10.ipynb similarity index 100% rename from 04_this_cohort/additional_resources/labs/lab_10.ipynb rename to 04_cohort_six/additional_resources/labs/lab_10.ipynb diff --git a/04_this_cohort/additional_resources/labs/lab_8.ipynb b/04_cohort_six/additional_resources/labs/lab_8.ipynb similarity index 100% rename from 04_this_cohort/additional_resources/labs/lab_8.ipynb rename to 04_cohort_six/additional_resources/labs/lab_8.ipynb diff --git a/04_this_cohort/additional_resources/labs/lab_9.ipynb b/04_cohort_six/additional_resources/labs/lab_9.ipynb similarity index 100% rename from 04_this_cohort/additional_resources/labs/lab_9.ipynb rename to 04_cohort_six/additional_resources/labs/lab_9.ipynb diff --git a/04_this_cohort/live_code/.keep b/04_cohort_six/live_code/.keep similarity index 100% rename from 04_this_cohort/live_code/.keep rename to 04_cohort_six/live_code/.keep diff --git a/README.md b/README.md index a957a3de3..189364031 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ This module's materials are adapted from the Deep Learning module taught at [Mas * Participants are encouraged to ask questions, and collaborate with others to enhance their learning experience. * Participants must have a computer and an internet connection to participate in online activities. * Participants must not use generative AI such as ChatGPT to generate code in order to complete assignments. It should be used as a supportive tool to seek out answers to questions you may have. -* We expect participants to have completed the instructions mentioned in the [onboarding repo](https://github.com/UofT-DSI/onboarding/blob/main/environment_setup/README.md). +* We expect participants to have completed the instructions mentioned in the [onboarding repo](https://github.com/UofT-DSI/onboarding/). * We encourage participants to default to having their camera on at all times, and turning the camera off only as needed. This will greatly enhance the learning experience for all participants and provides real-time feedback for the instructional team. * Participants must have VSCode installed with the following extensions: * [Jupyter](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) @@ -163,19 +163,15 @@ Feel free to use the following as resources: ├── 04_cohort_six ├── .gitignore ├── LICENSE -├── SETUP.md -├── pyproject.toml └── README.md ``` * **.github**: Contains issue templates and pull request templates for the repository. -* **materials**: Module slides and interactive notebooks (.ipynb files) used during learning sessions. -* **activities**: Contains graded assignments, exercises, and homework to practice concepts covered in the learning module. -* **instructional_team**: Resources for the instructional team. -* **cohort_six**: Additional materials and resources for cohort six. -* **.gitignore**: Files to exclude from this folder, specified by the Technical Facilitator -* **LICENSE**: The license for this repository. -* **SETUP.md**: Contains the steps required to set up this repo for the module. -* **pyproject.toml**: Tells Python which packages this repo needs to run. -* **README.md**: This file. + * **materials**: Module slides and interactive notebooks (.ipynb files) used during learning sessions. + * **activities**: Contains graded assignments, exercises, and homework to practice concepts covered in the learning module. + * **instructional_team**: Resources for the instructional team. + * **cohort_six**: Additional materials and resources for cohort six. + * **.gitignore**: Files to exclude from this folder, specified by the Technical Facilitator + * **LICENSE**: The license for this repository. + * **README.md**: This file. diff --git a/SETUP.md b/SETUP.md deleted file mode 100644 index c6cc61f1c..000000000 --- a/SETUP.md +++ /dev/null @@ -1,66 +0,0 @@ -# Setup -## Environment Setup Guide -Before using this repo, make sure you’ve completed the [environment setup guide](https://github.com/UofT-DSI/onboarding/blob/main/environment_setup/README.md), which installs the core tools you’ll need for this module, such as: - -- Git -- Git Bash (for Windows) -- Visual Studio Code -- UV - -## Necessary Packages -The Deep Learning module uses its own isolated environment called `deep-learning-env` so that packages don’t conflict with other projects. -We use UV to create this environment, activate it, and install the required packages listed in the module’s `pyproject.toml`. -This setup only needs to be done **once per module**, after that, you just activate the environment whenever you want to work in this repo. - -Open a terminal (macOS/Linux) or Git Bash (Windows) in this repo, and run the following commands in order: - -1. Create a virtual environment called `deep-learning-env`: - ``` - uv venv deep-learning-env --python 3.11 - ``` - -2. Activate the environment: - - for macOS/Linux: - ``` - source deep-learning-env/bin/activate - ``` - - - for windows (git bash): - ``` - source deep-learning-env/Scripts/activate - ``` - -3. Install all required packages from the [pyproject.toml](./pyproject.toml) - ```bash - uv sync --active - ``` - -## Environment Usage -In order to run any code in this repo, you must first activate its environment. -- for macOS/Linux: - ``` - source deep-learning-env/bin/activate - ``` - -- for windows (git bash): - ``` - source deep-learning-env/Scripts/activate - ``` - -When the environment is active, your terminal prompt will change to show: -``` -(deep-learning-env) $ -``` -This is your **visual cue** that you’re working inside the right environment. - -When you’re finished, you can deactivate it with: -```bash -deactivate -``` - -> **👉 Remember** -> Only one environment can be active at a time. If you switch to a different repo, first deactivate this one (or just close the terminal) and then activate the new repo’s environment. - ---- - -For questions or issues, please contact the Deep Learning Module learning support team or email courses.dsi@utoronto.ca. \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 97292d176..000000000 --- a/pyproject.toml +++ /dev/null @@ -1,21 +0,0 @@ -[project] -name = "deep-learning-env" -version = "0.1.0" -requires-python = ">=3.11" -dependencies = [ - "ipykernel>=6.30.1", - "h5py>=3.14.0", - "ipython>=9.5.0", - "keras>=3.11.3", - "matplotlib>=3.10.6", - "numpy>=2.3.3", - "plotly>=6.3.0", - "scikit-image>=0.25.2", - "scikit-learn>=1.7.2", - "seaborn>=0.13.2", - "sequence>=0.8.0", - "tensorflow>=2.20.0", - "torch>=2.8.0", - "torchvision>=0.23.0", - "umap>=0.1.1", -]