Skip to content

Fix some colab typos in colab06-07.ipynb #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 5 additions & 29 deletions exercises/colab06-07.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
]
},
{
Expand Down Expand Up @@ -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."
]
Expand Down Expand Up @@ -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."
]
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -466,7 +442,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.7"
"version": "3.6.8"
},
"toc": {
"base_numbering": 1,
Expand Down