|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 | 4 | "cell_type": "markdown",
|
5 |
| - "id": "premier-olympus", |
6 | 5 | "metadata": {},
|
7 | 6 | "source": [
|
8 | 7 | "# Data rows"
|
9 | 8 | ]
|
10 | 9 | },
|
11 | 10 | {
|
12 | 11 | "cell_type": "markdown",
|
13 |
| - "id": "affecting-former", |
14 | 12 | "metadata": {},
|
15 | 13 | "source": [
|
16 | 14 | "* Data rows are the items that are actually being labeled. We currently support the following:\n",
|
|
25 | 23 | {
|
26 | 24 | "cell_type": "code",
|
27 | 25 | "execution_count": null,
|
28 |
| - "id": "posted-nation", |
29 | 26 | "metadata": {},
|
30 | 27 | "outputs": [],
|
31 | 28 | "source": [
|
|
35 | 32 | {
|
36 | 33 | "cell_type": "code",
|
37 | 34 | "execution_count": 1,
|
38 |
| - "id": "beautiful-ready", |
39 | 35 | "metadata": {},
|
40 | 36 | "outputs": [],
|
41 | 37 | "source": [
|
|
48 | 44 | {
|
49 | 45 | "cell_type": "code",
|
50 | 46 | "execution_count": 2,
|
51 |
| - "id": "vertical-stockholm", |
52 | 47 | "metadata": {},
|
53 | 48 | "outputs": [],
|
54 | 49 | "source": [
|
|
70 | 65 | },
|
71 | 66 | {
|
72 | 67 | "cell_type": "markdown",
|
73 |
| - "id": "legendary-harvard", |
74 | 68 | "metadata": {},
|
75 | 69 | "source": [
|
76 | 70 | "* Set the following cell with your data to run this notebook"
|
|
79 | 73 | {
|
80 | 74 | "cell_type": "code",
|
81 | 75 | "execution_count": 3,
|
82 |
| - "id": "rural-fellow", |
83 | 76 | "metadata": {},
|
84 | 77 | "outputs": [],
|
85 | 78 | "source": [
|
|
93 | 86 | {
|
94 | 87 | "cell_type": "code",
|
95 | 88 | "execution_count": 4,
|
96 |
| - "id": "proof-detective", |
97 | 89 | "metadata": {},
|
98 | 90 | "outputs": [],
|
99 | 91 | "source": [
|
|
103 | 95 | {
|
104 | 96 | "cell_type": "code",
|
105 | 97 | "execution_count": 5,
|
106 |
| - "id": "selective-reconstruction", |
107 | 98 | "metadata": {},
|
108 | 99 | "outputs": [],
|
109 | 100 | "source": [
|
|
115 | 106 | },
|
116 | 107 | {
|
117 | 108 | "cell_type": "markdown",
|
118 |
| - "id": "registered-cause", |
119 | 109 | "metadata": {},
|
120 | 110 | "source": [
|
121 | 111 | "### Read"
|
|
124 | 114 | {
|
125 | 115 | "cell_type": "code",
|
126 | 116 | "execution_count": 6,
|
127 |
| - "id": "extra-paris", |
128 | 117 | "metadata": {},
|
129 | 118 | "outputs": [],
|
130 | 119 | "source": [
|
|
135 | 124 | {
|
136 | 125 | "cell_type": "code",
|
137 | 126 | "execution_count": 7,
|
138 |
| - "id": "packed-going", |
139 | 127 | "metadata": {},
|
140 | 128 | "outputs": [
|
141 | 129 | {
|
|
158 | 146 | {
|
159 | 147 | "cell_type": "code",
|
160 | 148 | "execution_count": 8,
|
161 |
| - "id": "above-vocabulary", |
162 | 149 | "metadata": {},
|
163 | 150 | "outputs": [
|
164 | 151 | {
|
|
177 | 164 | },
|
178 | 165 | {
|
179 | 166 | "cell_type": "markdown",
|
180 |
| - "id": "successful-patch", |
181 | 167 | "metadata": {},
|
182 | 168 | "source": [
|
183 | 169 | "### Create\n",
|
|
187 | 173 | {
|
188 | 174 | "cell_type": "code",
|
189 | 175 | "execution_count": 9,
|
190 |
| - "id": "medical-portuguese", |
191 | 176 | "metadata": {},
|
192 | 177 | "outputs": [
|
193 | 178 | {
|
|
213 | 198 | },
|
214 | 199 | {
|
215 | 200 | "cell_type": "markdown",
|
216 |
| - "id": "helpful-lingerie", |
217 | 201 | "metadata": {},
|
218 | 202 | "source": [
|
219 | 203 | "* Bulk create data rows (This is much faster than creating individual data rows)"
|
|
222 | 206 | {
|
223 | 207 | "cell_type": "code",
|
224 | 208 | "execution_count": 10,
|
225 |
| - "id": "round-perfume", |
226 | 209 | "metadata": {},
|
227 | 210 | "outputs": [],
|
228 | 211 | "source": [
|
|
236 | 219 | {
|
237 | 220 | "cell_type": "code",
|
238 | 221 | "execution_count": 11,
|
239 |
| - "id": "breeding-brother", |
240 | 222 | "metadata": {},
|
241 | 223 | "outputs": [],
|
242 | 224 | "source": [
|
|
251 | 233 | {
|
252 | 234 | "cell_type": "code",
|
253 | 235 | "execution_count": 12,
|
254 |
| - "id": "thrown-designation", |
255 | 236 | "metadata": {},
|
256 | 237 | "outputs": [],
|
257 | 238 | "source": [
|
|
264 | 245 | {
|
265 | 246 | "cell_type": "code",
|
266 | 247 | "execution_count": 13,
|
267 |
| - "id": "japanese-jefferson", |
268 | 248 | "metadata": {},
|
269 | 249 | "outputs": [],
|
270 | 250 | "source": [
|
|
280 | 260 | {
|
281 | 261 | "cell_type": "code",
|
282 | 262 | "execution_count": 14,
|
283 |
| - "id": "accessible-effort", |
284 | 263 | "metadata": {},
|
285 | 264 | "outputs": [
|
286 | 265 | {
|
|
303 | 282 | },
|
304 | 283 | {
|
305 | 284 | "cell_type": "markdown",
|
306 |
| - "id": "interested-proxy", |
307 | 285 | "metadata": {},
|
308 | 286 | "source": [
|
309 | 287 | "### Update"
|
|
312 | 290 | {
|
313 | 291 | "cell_type": "code",
|
314 | 292 | "execution_count": 15,
|
315 |
| - "id": "floral-elimination", |
316 | 293 | "metadata": {},
|
317 | 294 | "outputs": [
|
318 | 295 | {
|
|
333 | 310 | {
|
334 | 311 | "cell_type": "code",
|
335 | 312 | "execution_count": 16,
|
336 |
| - "id": "collect-cosmetic", |
337 | 313 | "metadata": {},
|
338 | 314 | "outputs": [
|
339 | 315 | {
|
|
352 | 328 | "# Attachments are visible for all projects connected to the data_row \n",
|
353 | 329 | "data_row.create_attachment(attachment_type=\"TEXT\", attachment_value=\"LABELERS WILL SEE THIS \")\n",
|
354 | 330 | "# See more information here:\n",
|
355 |
| - "# https://docs.labelbox.com/data-model/en/index-en#attachments\n", |
| 331 | + "# https://docs.labelbox.com/reference/type-image\n", |
356 | 332 | "# Note that attachment_value must always be a string (url to a video/image or a text value to display)"
|
357 | 333 | ]
|
358 | 334 | },
|
359 | 335 | {
|
360 | 336 | "cell_type": "markdown",
|
361 |
| - "id": "explicit-morrison", |
362 | 337 | "metadata": {},
|
363 | 338 | "source": [
|
364 | 339 | "### Delete"
|
|
367 | 342 | {
|
368 | 343 | "cell_type": "code",
|
369 | 344 | "execution_count": 17,
|
370 |
| - "id": "dental-banana", |
371 | 345 | "metadata": {},
|
372 | 346 | "outputs": [],
|
373 | 347 | "source": [
|
|
378 | 352 | {
|
379 | 353 | "cell_type": "code",
|
380 | 354 | "execution_count": 18,
|
381 |
| - "id": "binary-organic", |
382 | 355 | "metadata": {},
|
383 | 356 | "outputs": [],
|
384 | 357 | "source": [
|
|
389 | 362 | ],
|
390 | 363 | "metadata": {
|
391 | 364 | "kernelspec": {
|
392 |
| - "display_name": "Python 3 (ipykernel)", |
| 365 | + "display_name": "Python 3", |
393 | 366 | "language": "python",
|
394 | 367 | "name": "python3"
|
395 | 368 | },
|
|
403 | 376 | "name": "python",
|
404 | 377 | "nbconvert_exporter": "python",
|
405 | 378 | "pygments_lexer": "ipython3",
|
406 |
| - "version": "3.8.2" |
| 379 | + "version": "3.8.5" |
407 | 380 | }
|
408 | 381 | },
|
409 | 382 | "nbformat": 4,
|
|
0 commit comments