From 1f1b8ce24a2ff3331a2a8cbeeb5fc3146ca44f6e Mon Sep 17 00:00:00 2001 From: Guillaume Maze Date: Wed, 15 Jan 2025 09:26:32 +0100 Subject: [PATCH] more update to windows --- .github/workflows/build-env.yml | 2 +- practice/environment/coiled/README.md | 25 ++++++++++++++++--- ...vironment-coiled-pinned-binder-windows.yml | 2 +- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-env.yml b/.github/workflows/build-env.yml index 42c5739..ebe0b5e 100644 --- a/.github/workflows/build-env.yml +++ b/.github/workflows/build-env.yml @@ -171,7 +171,7 @@ jobs: - name: Check Google SDK 1 shell: cmd run: | - C:\Program Files\google-cloud-sdk\bin\gcloud info + "C:\Program Files\google-cloud-sdk\bin\gcloud" info - name: Check Google SDK 2 shell: cmd diff --git a/practice/environment/coiled/README.md b/practice/environment/coiled/README.md index c67b0ae..412bb90 100644 --- a/practice/environment/coiled/README.md +++ b/practice/environment/coiled/README.md @@ -10,19 +10,36 @@ ### Local Python environment -- Download the *ds2-coiled-2025-binder* environment definition we created for the class from: +#### For MacOS and Linux systems + +- Download the *ds2-coiled-2025-binder* environment definition we created for the class from here: https://github.com/obidam/ds2-2025/blob/main/practice/environment/coiled/environment-coiled-pinned-binder.yml -- Note that if you're running on Windows, you must be working with this environment: +- Install and activate this Python 3.11 environment with a package manager like miniconda: +```bash +miniconda env create -f environment-coiled-pinned-binder.yml +miniconda activate ds2-coiled-2025-binder +``` + +#### For Windows system + +- Download the *ds2-coiled-2025-binder-windows* environment definition we created for the class from here: https://github.com/obidam/ds2-2025/blob/main/practice/environment/coiled/environment-coiled-pinned-binder-windows.yml -- Install and activate this Python 3.11 environment to easily connect to your Coiled account and GCP clusters: +- Install and activate this Python 3.11 environment with a package manager like miniconda: ```bash miniconda env create -f environment-coiled-pinned-binder.yml miniconda activate ds2-coiled-2025-binder ``` -- Connect to your Coiled account: +- Finally, since the google-cloud-sdk library is not available with a package manager, it must be installed manually, and you need to install the specific release 502 from: + https://storage.googleapis.com/cloud-sdk-release/google-cloud-cli-502.0.0-windows-x86_64.zip + +- Note that we won't actually use the Google Cloud SDK from the notebooks, but it is required by Coiled to setup the Dask cluster on the Google Cloud Perform. So, you don't need to configure the SDK with ``gcloud init``. + +### Connect to Coiled + +- You now need to connect to your Coiled account with the appropriate workspace: ```bash coiled login --workspace class-2025 ``` diff --git a/practice/environment/coiled/environment-coiled-pinned-binder-windows.yml b/practice/environment/coiled/environment-coiled-pinned-binder-windows.yml index 346a7fa..4ac9687 100644 --- a/practice/environment/coiled/environment-coiled-pinned-binder-windows.yml +++ b/practice/environment/coiled/environment-coiled-pinned-binder-windows.yml @@ -15,7 +15,7 @@ dependencies: - seaborn = 0.13.2 - dask-ml = 2023.3.24 - coiled = 1.71.1 -# - google-cloud-sdk = 502.0.0 # Installed manualy because not available for Windows +# - google-cloud-sdk = 502.0.0 # Installed manually because not available for Windows - ipykernel = 6.29.0 - argopy = 0.1.14 - s3fs = 2023.12.2