Skip to content

Commit 91944c2

Browse files
authored
update notebook links to point to develop (#1557)
Updated all notebook links to point to develop
1 parent 58b714d commit 91944c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+618
-670
lines changed

examples/annotation_import/audio.ipynb

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"metadata": {},
1717
"source": [
1818
"<td>\n",
19-
"<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/master/examples/annotation_import/audio.ipynb\" target=\"_blank\"><img\n",
19+
"<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/develop/examples/annotation_import/audio.ipynb\" target=\"_blank\"><img\n",
2020
"src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"></a>\n",
2121
"</td>\n",
2222
"\n",
2323
"<td>\n",
24-
"<a href=\"https://github.com/Labelbox/labelbox-python/tree/master/examples/annotation_import/audio.ipynb\" target=\"_blank\"><img\n",
24+
"<a href=\"https://github.com/Labelbox/labelbox-python/tree/develop/examples/annotation_import/audio.ipynb\" target=\"_blank\"><img\n",
2525
"src=\"https://img.shields.io/badge/GitHub-100000?logo=github&logoColor=white\" alt=\"GitHub\"></a>\n",
2626
"</td>"
2727
],
@@ -80,8 +80,8 @@
8080
"cell_type": "code",
8181
"outputs": [
8282
{
83-
"name": "stdout",
8483
"output_type": "stream",
84+
"name": "stdout",
8585
"text": [
8686
"\n",
8787
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip available: \u001b[0m\u001b[31;49m22.3.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m23.0.1\u001b[0m\n",
@@ -157,15 +157,15 @@
157157
{
158158
"metadata": {},
159159
"source": [
160-
"##### Checklist Classification ####### \n",
160+
"##### Checklist Classification #######\n",
161161
"\n",
162162
"checklist_annotation= lb_types.ClassificationAnnotation(\n",
163163
" name=\"checklist_audio\",\n",
164164
" value=lb_types.Checklist(\n",
165165
" answer = [\n",
166166
" lb_types.ClassificationAnswer(\n",
167167
" name = \"first_checklist_answer\"\n",
168-
" ), \n",
168+
" ),\n",
169169
" lb_types.ClassificationAnswer(\n",
170170
" name = \"second_checklist_answer\"\n",
171171
" )\n",
@@ -242,8 +242,8 @@
242242
"cell_type": "code",
243243
"outputs": [
244244
{
245-
"name": "stdout",
246245
"output_type": "stream",
246+
"name": "stdout",
247247
"text": [
248248
"Errors: None\n",
249249
"Failed data rows: None\n"
@@ -267,21 +267,21 @@
267267
"metadata": {},
268268
"source": [
269269
"ontology_builder = lb.OntologyBuilder(\n",
270-
" classifications=[ \n",
271-
" lb.Classification( \n",
270+
" classifications=[\n",
271+
" lb.Classification(\n",
272272
" class_type=lb.Classification.Type.TEXT,\n",
273-
" name=\"text_audio\"), \n",
274-
" lb.Classification( \n",
275-
" class_type=lb.Classification.Type.CHECKLIST, \n",
276-
" name=\"checklist_audio\", \n",
273+
" name=\"text_audio\"),\n",
274+
" lb.Classification(\n",
275+
" class_type=lb.Classification.Type.CHECKLIST,\n",
276+
" name=\"checklist_audio\",\n",
277277
" options=[\n",
278278
" lb.Option(value=\"first_checklist_answer\"),\n",
279-
" lb.Option(value=\"second_checklist_answer\") \n",
279+
" lb.Option(value=\"second_checklist_answer\")\n",
280280
" ]\n",
281-
" ), \n",
282-
" lb.Classification( \n",
283-
" class_type=lb.Classification.Type.RADIO, \n",
284-
" name=\"radio_audio\", \n",
281+
" ),\n",
282+
" lb.Classification(\n",
283+
" class_type=lb.Classification.Type.RADIO,\n",
284+
" name=\"radio_audio\",\n",
285285
" options=[\n",
286286
" lb.Option(value=\"first_radio_answer\"),\n",
287287
" lb.Option(value=\"second_radio_answer\")\n",
@@ -309,17 +309,17 @@
309309
"metadata": {},
310310
"source": [
311311
"# Create Labelbox project\n",
312-
"project = client.create_project(name=\"audio_project\", \n",
312+
"project = client.create_project(name=\"audio_project\",\n",
313313
" media_type=lb.MediaType.Audio)\n",
314314
"\n",
315-
"# Setup your ontology \n",
315+
"# Setup your ontology\n",
316316
"project.setup_editor(ontology) # Connect your ontology and editor to your project"
317317
],
318318
"cell_type": "code",
319319
"outputs": [
320320
{
321-
"name": "stderr",
322321
"output_type": "stream",
322+
"name": "stderr",
323323
"text": [
324324
"Default createProject behavior will soon be adjusted to prefer batch projects. Pass in `queue_mode` parameter explicitly to opt-out for the time being.\n"
325325
]
@@ -351,8 +351,8 @@
351351
"cell_type": "code",
352352
"outputs": [
353353
{
354-
"name": "stdout",
355354
"output_type": "stream",
355+
"name": "stdout",
356356
"text": [
357357
"Batch: <Batch {\n",
358358
" \"consensus_settings_json\": \"{\\\"numberOfLabels\\\":1,\\\"coveragePercentage\\\":0}\",\n",
@@ -452,9 +452,9 @@
452452
"source": [
453453
"# Upload our label using Model-Assisted Labeling\n",
454454
"upload_job = lb.MALPredictionImport.create_from_objects(\n",
455-
" client = client, \n",
456-
" project_id = project.uid, \n",
457-
" name=f\"mal_job-{str(uuid.uuid4())}\", \n",
455+
" client = client,\n",
456+
" project_id = project.uid,\n",
457+
" name=f\"mal_job-{str(uuid.uuid4())}\",\n",
458458
" predictions=label)\n",
459459
"\n",
460460
"upload_job.wait_until_done();\n",
@@ -464,8 +464,8 @@
464464
"cell_type": "code",
465465
"outputs": [
466466
{
467-
"name": "stdout",
468467
"output_type": "stream",
468+
"name": "stdout",
469469
"text": [
470470
"Errors: []\n",
471471
"Status of uploads: [{'uuid': '40aea601-206f-491c-8bcc-675205dbb351', 'dataRow': {'id': 'clfsl56ww5uyi078ldbojeqby', 'globalKey': 'sample-audio-1.mp3'}, 'status': 'SUCCESS'}, {'uuid': '51c43a0e-a54b-4ee3-94c1-7ccdebe81f98', 'dataRow': {'id': 'clfsl56ww5uyi078ldbojeqby', 'globalKey': 'sample-audio-1.mp3'}, 'status': 'SUCCESS'}, {'uuid': '380273f0-4ed4-4d0a-959a-06659f5edf88', 'dataRow': {'id': 'clfsl56ww5uyi078ldbojeqby', 'globalKey': 'sample-audio-1.mp3'}, 'status': 'SUCCESS'}]\n"
@@ -484,11 +484,11 @@
484484
{
485485
"metadata": {},
486486
"source": [
487-
"# Upload label for this data row in project \n",
487+
"# Upload label for this data row in project\n",
488488
"upload_job = lb.LabelImport.create_from_objects(\n",
489-
" client = client, \n",
490-
" project_id = project.uid, \n",
491-
" name=\"label_import_job\"+str(uuid.uuid4()), \n",
489+
" client = client,\n",
490+
" project_id = project.uid,\n",
491+
" name=\"label_import_job\"+str(uuid.uuid4()),\n",
492492
" labels=label)\n",
493493
"\n",
494494
"upload_job.wait_until_done();\n",
@@ -498,8 +498,8 @@
498498
"cell_type": "code",
499499
"outputs": [
500500
{
501-
"name": "stdout",
502501
"output_type": "stream",
502+
"name": "stdout",
503503
"text": [
504504
"Errors: []\n",
505505
"Status of uploads: [{'uuid': '1e555dd0-3916-4cfb-97be-79f9607da01a', 'dataRow': {'id': 'clfsl56ww5uyi078ldbojeqby', 'globalKey': 'sample-audio-1.mp3'}, 'status': 'SUCCESS'}, {'uuid': 'fe805388-d313-45ea-b3bc-1a7f5ffa0980', 'dataRow': {'id': 'clfsl56ww5uyi078ldbojeqby', 'globalKey': 'sample-audio-1.mp3'}, 'status': 'SUCCESS'}, {'uuid': '83cea6f0-acdf-4a2c-afff-197bac9bdb01', 'dataRow': {'id': 'clfsl56ww5uyi078ldbojeqby', 'globalKey': 'sample-audio-1.mp3'}, 'status': 'SUCCESS'}]\n"

examples/annotation_import/conversational.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"metadata": {},
1717
"source": [
1818
"<td>\n",
19-
"<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/master/examples/annotation_import/conversational.ipynb\" target=\"_blank\"><img\n",
19+
"<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/develop/examples/annotation_import/conversational.ipynb\" target=\"_blank\"><img\n",
2020
"src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"></a>\n",
2121
"</td>\n",
2222
"\n",
2323
"<td>\n",
24-
"<a href=\"https://github.com/Labelbox/labelbox-python/tree/master/examples/annotation_import/conversational.ipynb\" target=\"_blank\"><img\n",
24+
"<a href=\"https://github.com/Labelbox/labelbox-python/tree/develop/examples/annotation_import/conversational.ipynb\" target=\"_blank\"><img\n",
2525
"src=\"https://img.shields.io/badge/GitHub-100000?logo=github&logoColor=white\" alt=\"GitHub\"></a>\n",
2626
"</td>"
2727
],
@@ -362,9 +362,9 @@
362362
"ontology_builder = lb.OntologyBuilder(\n",
363363
" tools=[\n",
364364
" lb.Tool(tool=lb.Tool.Type.NER,name=\"ner\"),\n",
365-
" ], \n",
366-
" classifications=[ \n",
367-
" lb.Classification( \n",
365+
" ],\n",
366+
" classifications=[\n",
367+
" lb.Classification(\n",
368368
" class_type=lb.Classification.Type.TEXT,\n",
369369
" scope=lb.Classification.Scope.INDEX,\n",
370370
" name=\"text_convo\"),\n",
@@ -587,11 +587,11 @@
587587
{
588588
"metadata": {},
589589
"source": [
590-
"# Upload label for this data row in project \n",
590+
"# Upload label for this data row in project\n",
591591
"upload_job = lb.LabelImport.create_from_objects(\n",
592-
" client = client, \n",
593-
" project_id = project.uid, \n",
594-
" name=\"label_import_job\"+str(uuid.uuid4()), \n",
592+
" client = client,\n",
593+
" project_id = project.uid,\n",
594+
" name=\"label_import_job\"+str(uuid.uuid4()),\n",
595595
" labels=label)\n",
596596
"\n",
597597
"upload_job.wait_until_done()\n",

examples/annotation_import/conversational_LLM.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"\n",
2020
"<td>\n",
2121
"\n",
22-
"<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/master/examples/annotation_import/conversational_LLM.ipynb\" target=\"_blank\"><img\n",
22+
"<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/develop/examples/annotation_import/conversational_LLM.ipynb\" target=\"_blank\"><img\n",
2323
"src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"></a>\n",
2424
"</td>\n",
2525
"\n",
2626
"<td>\n",
2727
"\n",
28-
"<a href=\"https://github.com/Labelbox/labelbox-python/tree/master/examples/annotation_import/conversational_LLM.ipynb\" target=\"_blank\"><img\n",
28+
"<a href=\"https://github.com/Labelbox/labelbox-python/blob/develop/examples/annotation_import/conversational_LLM.ipynb\" target=\"_blank\"><img\n",
2929
"src=\"https://img.shields.io/badge/GitHub-100000?logo=github&logoColor=white\" alt=\"GitHub\"></a>\n",
3030
"</td>"
3131
],

examples/annotation_import/conversational_LLM_data_generation.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"\n",
2020
"<td>\n",
2121
"\n",
22-
"<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/master/examples/annotation_import/conversational_LLM_data_generation.ipynb\" target=\"_blank\"><img\n",
22+
"<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/develop/examples/annotation_import/conversational_LLM_data_generation.ipynb\" target=\"_blank\"><img\n",
2323
"src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"></a>\n",
2424
"</td>\n",
2525
"\n",
2626
"<td>\n",
2727
"\n",
28-
"<a href=\"https://github.com/Labelbox/labelbox-python/tree/master/examples/annotation_import/conversational_LLM_data_generation.ipynb\" target=\"_blank\"><img\n",
28+
"<a href=\"https://github.com/Labelbox/labelbox-python/tree/develop/examples/annotation_import/conversational_LLM_data_generation.ipynb\" target=\"_blank\"><img\n",
2929
"src=\"https://img.shields.io/badge/GitHub-100000?logo=github&logoColor=white\" alt=\"GitHub\"></a>\n",
3030
"</td>"
3131
],

examples/annotation_import/dicom.ipynb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"metadata": {},
1717
"source": [
1818
"<td>\n",
19-
"<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/master/examples/annotation_import/dicom.ipynb\" target=\"_blank\"><img\n",
19+
"<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/develop/examples/annotation_import/dicom.ipynb\" target=\"_blank\"><img\n",
2020
"src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"></a>\n",
2121
"</td>\n",
2222
"\n",
2323
"<td>\n",
2424
"\n",
25-
"<a href=\"https://github.com/Labelbox/labelbox-python/tree/master/examples/annotation_import/dicom.ipynb\" target=\"_blank\"><img\n",
25+
"<a href=\"https://github.com/Labelbox/labelbox-python/tree/develop/examples/annotation_import/dicom.ipynb\" target=\"_blank\"><img\n",
2626
"src=\"https://img.shields.io/badge/GitHub-100000?logo=github&logoColor=white\" alt=\"GitHub\"></a>\n",
2727
"</td> "
2828
],
@@ -62,8 +62,8 @@
6262
"cell_type": "code",
6363
"outputs": [
6464
{
65-
"name": "stdout",
6665
"output_type": "stream",
66+
"name": "stdout",
6767
"text": [
6868
"\n",
6969
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip available: \u001b[0m\u001b[31;49m22.3.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m23.0.1\u001b[0m\n",
@@ -138,7 +138,7 @@
138138
" ]),\n",
139139
" segment_index=1,\n",
140140
" keyframe=True,\n",
141-
" ), \n",
141+
" ),\n",
142142
"]\n",
143143
"\n",
144144
"polyline_annotation_ndjson = {\n",
@@ -238,7 +238,7 @@
238238
"source": [
239239
"global_key = \"sample-dicom-1.dcm\"\n",
240240
"asset = {\n",
241-
" \"row_data\": \"https://storage.googleapis.com/labelbox-datasets/dicom-sample-data/sample-dicom-1.dcm\", \n",
241+
" \"row_data\": \"https://storage.googleapis.com/labelbox-datasets/dicom-sample-data/sample-dicom-1.dcm\",\n",
242242
" \"global_key\": global_key,\n",
243243
"}\n",
244244
"\n",
@@ -251,8 +251,8 @@
251251
"cell_type": "code",
252252
"outputs": [
253253
{
254-
"name": "stdout",
255254
"output_type": "stream",
255+
"name": "stdout",
256256
"text": [
257257
"Errors : None\n",
258258
"Failed data rows: None\n"
@@ -312,8 +312,8 @@
312312
"cell_type": "code",
313313
"outputs": [
314314
{
315-
"name": "stderr",
316315
"output_type": "stream",
316+
"name": "stderr",
317317
"text": [
318318
"Default createProject behavior will soon be adjusted to prefer batch projects. Pass in `queue_mode` parameter explicitly to opt-out for the time being.\n"
319319
]
@@ -345,8 +345,8 @@
345345
"cell_type": "code",
346346
"outputs": [
347347
{
348-
"name": "stdout",
349348
"output_type": "stream",
349+
"name": "stdout",
350350
"text": [
351351
"Batch: <Batch {\n",
352352
" \"consensus_settings_json\": \"{\\\"numberOfLabels\\\":1,\\\"coveragePercentage\\\":0}\",\n",
@@ -408,9 +408,9 @@
408408
"label_ndjson = []\n",
409409
"\n",
410410
"for annotation in [\n",
411-
" polyline_annotation_ndjson, \n",
411+
" polyline_annotation_ndjson,\n",
412412
" mask_annotation_ndjson\n",
413-
"]: \n",
413+
"]:\n",
414414
" annotation.update({\n",
415415
" 'dataRow': {\n",
416416
" 'globalKey': global_key\n",
@@ -442,9 +442,9 @@
442442
"source": [
443443
"# Upload MAL label for this data row in project\n",
444444
"upload_job_mal = lb.MALPredictionImport.create_from_objects(\n",
445-
" client = client, \n",
446-
" project_id = project.uid, \n",
447-
" name=\"mal_import_job-\" + str(uuid.uuid4()), \n",
445+
" client = client,\n",
446+
" project_id = project.uid,\n",
447+
" name=\"mal_import_job-\" + str(uuid.uuid4()),\n",
448448
" predictions=labels)\n",
449449
"\n",
450450
"upload_job_mal.wait_until_done();\n",
@@ -455,8 +455,8 @@
455455
"cell_type": "code",
456456
"outputs": [
457457
{
458-
"name": "stderr",
459458
"output_type": "stream",
459+
"name": "stderr",
460460
"text": [
461461
"/Users/ibrahim/workspace/labelbox-python/labelbox/data/serialization/ndjson/label.py:177: UserWarning: Nested classifications are not currently supported\n",
462462
" for video object annotations\n",
@@ -465,8 +465,8 @@
465465
]
466466
},
467467
{
468-
"name": "stdout",
469468
"output_type": "stream",
469+
"name": "stdout",
470470
"text": [
471471
"Errors: []\n",
472472
"Status of uploads: [{'uuid': 'd193960f-1c7b-4493-87d1-8a55b2405748', 'dataRow': {'id': 'clftu3umv0384075r5poqey9o', 'globalKey': 'sample-dicom-1.dcm'}, 'status': 'SUCCESS'}, {'uuid': '8d0c454e-3385-44fc-97db-0516db3e7dc1', 'dataRow': {'id': 'clftu3umv0384075r5poqey9o', 'globalKey': 'sample-dicom-1.dcm'}, 'status': 'SUCCESS'}]\n",
@@ -488,7 +488,7 @@
488488
"source": [
489489
"upload_job_label_import = lb.LabelImport.create_from_objects(\n",
490490
" client = client,\n",
491-
" project_id = project.uid, \n",
491+
" project_id = project.uid,\n",
492492
" name = \"label_import_job-\" + str(uuid.uuid4()),\n",
493493
" labels=labels\n",
494494
")\n",
@@ -501,8 +501,8 @@
501501
"cell_type": "code",
502502
"outputs": [
503503
{
504-
"name": "stdout",
505504
"output_type": "stream",
505+
"name": "stdout",
506506
"text": [
507507
"Errors: []\n",
508508
"Status of uploads: [{'uuid': '1cc42044-4f36-45af-8b05-da6c8dd5bf37', 'dataRow': {'id': 'clftu3umv0384075r5poqey9o', 'globalKey': 'sample-dicom-1.dcm'}, 'status': 'SUCCESS'}, {'uuid': '005e5d45-b3c2-49f5-bf82-aef760de7826', 'dataRow': {'id': 'clftu3umv0384075r5poqey9o', 'globalKey': 'sample-dicom-1.dcm'}, 'status': 'SUCCESS'}]\n",

0 commit comments

Comments
 (0)