Skip to content

Commit 525b2a4

Browse files
test(bigframes): Fix nb test project id injection for 4 examples (#17000)
1 parent 824ea0d commit 525b2a4

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

packages/bigframes/notebooks/generative_ai/ai_functions.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"source": [
7979
"import bigframes.pandas as bpd \n",
8080
"\n",
81-
"PROJECT_ID = \"\" # Your project ID here\n",
81+
"PROJECT_ID = \"\" # @param {type:\"string\"}\n",
8282
"\n",
8383
"bpd.options.bigquery.project = PROJECT_ID\n",
8484
"bpd.options.bigquery.ordering_mode = \"partial\"\n",

packages/bigframes/notebooks/generative_ai/ai_movie_poster.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@
102102
"source": [
103103
"import bigframes.pandas as bpd\n",
104104
"\n",
105-
"MY_RPOJECT_ID = \"bigframes-dev\" # @param {type:\"string\"}\n",
105+
"PROJECT_ID = \"bigframes-dev\" # @param {type:\"string\"}\n",
106106
"\n",
107-
"bpd.options.bigquery.project = MY_RPOJECT_ID"
107+
"bpd.options.bigquery.project = PROJECT_ID"
108108
]
109109
},
110110
{

packages/bigframes/notebooks/generative_ai/bq_dataframes_llm_output_schema.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@
169169
"metadata": {},
170170
"outputs": [],
171171
"source": [
172-
"PROJECT = \"\" # replace with your project\n",
172+
"PROJECT_ID = \"\" # @param {type:\"string\"}\n",
173173
"import bigframes\n",
174-
"bigframes.options.bigquery.project = PROJECT\n",
174+
"bigframes.options.bigquery.project = PROJECT_ID\n",
175175
"bigframes.options.display.progress_bar = None\n",
176176
"\n",
177177
"import bigframes.pandas as bpd\n",

packages/bigframes/notebooks/remote_functions/remote_function_vertex_claude_model.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@
9494
},
9595
{
9696
"cell_type": "code",
97-
"execution_count": 2,
97+
"execution_count": null,
9898
"metadata": {},
9999
"outputs": [],
100100
"source": [
101-
"PROJECT = \"bigframes-dev\" # replace with your project\n",
101+
"PROJECT_ID = \"bigframes-dev\" # @param {type:\"string\"}\n",
102102
"LOCATION = \"us-east5\""
103103
]
104104
},
@@ -115,15 +115,15 @@
115115
},
116116
{
117117
"cell_type": "code",
118-
"execution_count": 3,
118+
"execution_count": null,
119119
"metadata": {},
120120
"outputs": [],
121121
"source": [
122122
"# Import BigQuery DataFrames pandas module and initialize it with your project\n",
123123
"# and location\n",
124124
"\n",
125125
"import bigframes.pandas as bpd\n",
126-
"bpd.options.bigquery.project = PROJECT\n",
126+
"bpd.options.bigquery.project = PROJECT_ID\n",
127127
"bpd.options.bigquery.location = LOCATION"
128128
]
129129
},
@@ -229,7 +229,7 @@
229229
},
230230
{
231231
"cell_type": "code",
232-
"execution_count": 5,
232+
"execution_count": null,
233233
"metadata": {},
234234
"outputs": [
235235
{
@@ -255,7 +255,7 @@
255255
")\n",
256256
"def anthropic_transformer(message: str) -> str:\n",
257257
" from anthropic import AnthropicVertex\n",
258-
" client = AnthropicVertex(region=LOCATION, project_id=PROJECT)\n",
258+
" client = AnthropicVertex(region=LOCATION, project_id=PROJECT_ID)\n",
259259
"\n",
260260
" message = client.messages.create(\n",
261261
" max_tokens=1024,\n",

0 commit comments

Comments
 (0)