diff --git a/exercises/colab06-07.ipynb b/exercises/colab06-07.ipynb index 041b0f9..ddc5a88 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." ] }, { @@ -126,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." ] @@ -242,7 +237,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." ] @@ -342,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", @@ -466,7 +442,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.7" + "version": "3.6.8" }, "toc": { "base_numbering": 1,