Skip to content

Commit 1df8ca6

Browse files
authored
docs: updated multimodal notebook instructions (#1745)
1 parent 3ea6043 commit 1df8ca6

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

notebooks/multimodal/multimodal_dataframe.ipynb

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,22 @@
7272
"### Setup"
7373
]
7474
},
75+
{
76+
"cell_type": "markdown",
77+
"metadata": {},
78+
"source": [
79+
"Install the latest bigframes package if bigframes version < 2.4.0"
80+
]
81+
},
82+
{
83+
"cell_type": "code",
84+
"execution_count": null,
85+
"metadata": {},
86+
"outputs": [],
87+
"source": [
88+
"# !pip install bigframes --upgrade"
89+
]
90+
},
7591
{
7692
"cell_type": "code",
7793
"execution_count": null,
@@ -84,10 +100,13 @@
84100
},
85101
"outputs": [],
86102
"source": [
87-
"PROJECT = \"bigframes-dev\" # replace with your project, project needs to be allowlisted go/bq-multimodal-allowlist (internal)\n",
88-
"# User must have https://cloud.google.com/bigquery/docs/use-bigquery-dataframes#permissions to use bigframes, BQ connection admin/user to create/use connections, BQ ObjRef permissions for ObjectRef and BQ routines permissions for using transform functions.\n",
89-
"# Or simply has BQ Admin role for all.\n",
90-
"OUTPUT_BUCKET = \"bigframes_blob_test\" # replace with your GCS bucket. The connection (or bigframes-default-connection of the project) must have read/write permission to the bucket.\n",
103+
"PROJECT = \"bigframes-dev\" # replace with your project. \n",
104+
"# Refer to https://cloud.google.com/bigquery/docs/multimodal-data-dataframes-tutorial#required_roles for your required permissions\n",
105+
"\n",
106+
"OUTPUT_BUCKET = \"bigframes_blob_test\" # replace with your GCS bucket. \n",
107+
"# The connection (or bigframes-default-connection of the project) must have read/write permission to the bucket. \n",
108+
"# Refer to https://cloud.google.com/bigquery/docs/multimodal-data-dataframes-tutorial#grant-permissions for setting up connection service account permissions.\n",
109+
"# In this Notebook it uses bigframes-default-connection by default. You can also bring in your own connections in each method.\n",
91110
"\n",
92111
"import bigframes\n",
93112
"# Setup project\n",
@@ -414,13 +433,6 @@
414433
"chunked = df_pdf[\"chunked\"].explode()\n",
415434
"chunked"
416435
]
417-
},
418-
{
419-
"cell_type": "code",
420-
"execution_count": null,
421-
"metadata": {},
422-
"outputs": [],
423-
"source": []
424436
}
425437
],
426438
"metadata": {

0 commit comments

Comments
 (0)