Skip to content

fix users bug and emphasize kernel restart #2407

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

Merged
merged 1 commit into from
Oct 7, 2019
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@
"metadata": {},
"outputs": [],
"source": [
"! pip install --upgrade --quiet google-cloud-automl google-cloud-bigquery"
"! pip3 install --upgrade --quiet google-cloud-automl google-cloud-bigquery"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Restart the kernel to allow `automl_v1beta1` to be imported. The following cell should succeed after a kernel restart:"
"__Restart the kernel__ to allow `automl_v1beta1` to be imported. The following cell should succeed after a kernel restart:"
]
},
{
Expand Down Expand Up @@ -624,10 +624,10 @@
" WHERE user = \"{}\" AND CAST(tables.value AS INT64) = 1\n",
" ORDER BY score DESC\n",
" LIMIT {}\n",
"\"\"\".format(output_uri[5:].replace(\":\", \".\"), training_table, user, n)\n",
"\"\"\".format(output_uri[5:].replace(\":\", \".\"), training_table, users[0], n)\n",
"query_job = bq_client.query(query)\n",
"\n",
"print(\"Top {} song recommended for {}:\".format(n, user))\n",
"print(\"Top {} song recommended for {}:\".format(n, users[0]))\n",
"for idx, row in enumerate(query_job):\n",
" print(\"{}.\".format(idx + 1), row[\"song\"])"
]
Expand Down