Skip to content

Commit c18e4a4

Browse files
author
Matt Sokoloff
committed
fix notebook
1 parent 126d9c8 commit c18e4a4

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

examples/basics/data_row_metadata.ipynb

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
},
108108
"outputs": [],
109109
"source": [
110-
"API_KEY = None\n",
110+
"API_KEY = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJja2s0cTF2Z3djMHZwMDcwNHhoeDdtNHZrIiwib3JnYW5pemF0aW9uSWQiOiJja2s0cTF2Z2Fwc2F1MDczMjRhd25zanEyIiwiYXBpS2V5SWQiOiJja3VtaWhoYmkydG52MHo2eWZ5azBlYng3Iiwic2VjcmV0IjoiZWRhZDhiMTc2MDRiMmUyNTQyZmEwNTRhNTQ1MjJjNzkiLCJpYXQiOjE2MzM5NDgwNTYsImV4cCI6MjI2NTEwMDA1Nn0.rrhNfh8RRv1pcs9teEy-uT8Y863rpVsNVOgbo_lcgJw\"\n",
111111
"client = labelbox.Client(api_key=API_KEY)"
112112
]
113113
},
@@ -169,18 +169,6 @@
169169
"train_field = mdo.reserved_by_name[\"split\"][\"train\"]"
170170
]
171171
},
172-
{
173-
"cell_type": "code",
174-
"execution_count": null,
175-
"id": "uOS2QlHmqAIs",
176-
"metadata": {
177-
"id": "uOS2QlHmqAIs"
178-
},
179-
"outputs": [],
180-
"source": [
181-
"split_field.options"
182-
]
183-
},
184172
{
185173
"cell_type": "code",
186174
"execution_count": null,
@@ -317,7 +305,7 @@
317305
"outputs": [],
318306
"source": [
319307
"# Select a dataset to use\n",
320-
"dataset_id = None\n",
308+
"dataset_id = \"ckuimx20t6jl30y97euiz7iku\"\n",
321309
"dataset = client.get_dataset(dataset_id)"
322310
]
323311
},
@@ -567,7 +555,6 @@
567555
"fields = []\n",
568556
"# iterate through the fields you want to delete\n",
569557
"for field in md.fields:\n",
570-
" schema = mdo.field_by_index[field.schema_id]\n",
571558
" fields.append(field.schema_id)\n",
572559
"\n",
573560
"deletes = DeleteDataRowMetadata(\n",
@@ -649,4 +636,4 @@
649636
},
650637
"nbformat": 4,
651638
"nbformat_minor": 5
652-
}
639+
}

0 commit comments

Comments
 (0)