From ef1a4634dbe0eedf22af90231f79c4996aa1bbdf Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Wed, 16 Oct 2019 19:28:59 -0700 Subject: [PATCH 1/3] fix some colab typos --- exercises/colab06-07.ipynb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/exercises/colab06-07.ipynb b/exercises/colab06-07.ipynb index 041b0f9..11b2e0d 100644 --- a/exercises/colab06-07.ipynb +++ b/exercises/colab06-07.ipynb @@ -6,9 +6,7 @@ "source": [ "# Install Dependencies\n", "\n", - "If you are running on Google Colab, you need to install the necessary dependencies before beginning the exercise.\n", - "\n", - "**NOTE**: After installing the dependencies, you need to click on \"RESTART RUNTIME\"" + "If you are running on Google Colab, you need to install the necessary dependencies before beginning the exercise." ] }, { @@ -242,7 +240,7 @@ "\n", "We are able to use `ray.wait` because the two lists returned by **`ray.wait` maintains the ordering of the input list**. That is, if `f` is a remote function, the code \n", "```python\n", - " results = ray.wait([f.remote(i) for i in range(100)], num_results=10)\n", + " results = ray.wait([f.remote(i) for i in range(100)], num_returns=10)\n", "```\n", "will return `(ready_list, remain_list)` and the `ObjectID`s of in those lists will be ordered by the argument passed to `f` above." ] @@ -466,7 +464,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.7" + "version": "3.6.8" }, "toc": { "base_numbering": 1, From 61850cd9669e8a4fe4a941bff29189faf47c7dbb Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Wed, 16 Oct 2019 19:35:10 -0700 Subject: [PATCH 2/3] update --- exercises/colab06-07.ipynb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/exercises/colab06-07.ipynb b/exercises/colab06-07.ipynb index 11b2e0d..7d7ff41 100644 --- a/exercises/colab06-07.ipynb +++ b/exercises/colab06-07.ipynb @@ -124,10 +124,7 @@ }, { "cell_type": "markdown", - "metadata": { - "colab_type": "text", - "id": "KyQRXQM4mqD1" - }, + "metadata": {}, "source": [ "**EXERCISE:** Using `ray.wait`, change the code below so that `initial_results` consists of the outputs of the first three tasks to complete instead of the first three tasks that were submitted." ] From b6729673c79abb44b080ddfa03ed9f489a343550 Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Wed, 16 Oct 2019 19:38:58 -0700 Subject: [PATCH 3/3] fix --- exercises/colab06-07.ipynb | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/exercises/colab06-07.ipynb b/exercises/colab06-07.ipynb index 7d7ff41..ddc5a88 100644 --- a/exercises/colab06-07.ipynb +++ b/exercises/colab06-07.ipynb @@ -337,26 +337,7 @@ }, { "cell_type": "markdown", - "metadata": { - "colab": { - "base_uri": "https://localhost:8080/", - "height": 150 - }, - "colab_type": "code", - "executionInfo": { - "elapsed": 331, - "status": "error", - "timestamp": 1569887921445, - "user": { - "displayName": "", - "photoUrl": "", - "userId": "" - }, - "user_tz": 420 - }, - "id": "QY2xr5jRnIAN", - "outputId": "2ccc7a5c-7187-45b8-f736-4ffe58db6d78" - }, + "metadata": {}, "source": [ "**EXERCISE:** Change the code below to use `ray.wait` to get the results of the tasks in the order that they complete.\n", "\n",