You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2024/07/24 15:08:01 UTC

(beam) 01/01: Auth with project id

This is an automated email from the ASF dual-hosted git repository.

damccorm pushed a commit to branch users/damccorm/authToColab
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 27fdb71add91d07b05050c5c506f4c555933b72a
Author: Danny McCormick <da...@google.com>
AuthorDate: Wed Jul 24 17:07:51 2024 +0200

    Auth with project id
---
 .../beam-ml/bigtable_enrichment_transform.ipynb    | 26 +++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/examples/notebooks/beam-ml/bigtable_enrichment_transform.ipynb b/examples/notebooks/beam-ml/bigtable_enrichment_transform.ipynb
index 7510831bac4..6d7146c057d 100644
--- a/examples/notebooks/beam-ml/bigtable_enrichment_transform.ipynb
+++ b/examples/notebooks/beam-ml/bigtable_enrichment_transform.ipynb
@@ -142,18 +142,6 @@
         "This notebook reads data from Pub/Sub and Bigtable. To use your Google Cloud account, authenticate this notebook."
       ]
     },
-    {
-      "cell_type": "code",
-      "execution_count": null,
-      "metadata": {
-        "id": "Kz9sccyGBqz3"
-      },
-      "outputs": [],
-      "source": [
-        "from google.colab import auth\n",
-        "auth.authenticate_user()"
-      ]
-    },
     {
       "cell_type": "markdown",
       "metadata": {
@@ -176,6 +164,18 @@
         "TABLE_ID = \"<TABLE_ID>\""
       ]
     },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "id": "Kz9sccyGBqz3"
+      },
+      "outputs": [],
+      "source": [
+        "from google.colab import auth\n",
+        "auth.authenticate_user(project_id=PROJECT_ID)"
+      ]
+    },
     {
       "cell_type": "markdown",
       "metadata": {
@@ -879,4 +879,4 @@
   },
   "nbformat": 4,
   "nbformat_minor": 0
-}
\ No newline at end of file
+}