Skip to content

Commit 2b5525e

Browse files
authored
DOCS-1080 Change setup_editor to connect_ontology and remove outdated client.enable_experimental (#12)
1 parent 929e2bb commit 2b5525e

34 files changed

+3218
-715
lines changed

annotation_import/audio.ipynb

Lines changed: 264 additions & 92 deletions
Large diffs are not rendered by default.

annotation_import/conversational.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
},
203203
{
204204
"metadata": {},
205-
"source": "# Create Labelbox project\nproject = client.create_project(\n name=\"Conversational Text Annotation Import Demo\",\n media_type=lb.MediaType.Conversational,\n)\n\n# Setup your ontology\nproject.setup_editor(\n ontology) # Connect your ontology and editor to your project",
205+
"source": "# Create Labelbox project\nproject = client.create_project(\n name=\"Conversational Text Annotation Import Demo\",\n media_type=lb.MediaType.Conversational,\n)\n\n# Setup your ontology\nproject.connect_ontology(\n ontology) # Connect your ontology and editor to your project",
206206
"cell_type": "code",
207207
"outputs": [],
208208
"execution_count": null

annotation_import/conversational_LLM.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
},
216216
{
217217
"metadata": {},
218-
"source": "# Create Labelbox project\nproject = client.create_project(\n name=\"Conversational Text Annotation Import Demo (Pairwise comparison)\",\n media_type=lb.MediaType.Conversational,\n)\n\n# Setup your ontology\nproject.setup_editor(\n ontology) # Connect your ontology and editor to your project",
218+
"source": "# Create Labelbox project\nproject = client.create_project(\n name=\"Conversational Text Annotation Import Demo (Pairwise comparison)\",\n media_type=lb.MediaType.Conversational,\n)\n\n# Setup your ontology\nproject.connect_ontology(\n ontology) # Connect your ontology and editor to your project",
219219
"cell_type": "code",
220220
"outputs": [],
221221
"execution_count": null

annotation_import/dicom.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
},
155155
{
156156
"metadata": {},
157-
"source": "# Project defaults to batch mode with benchmark quality settings if this argument is not provided\n# Queue mode will be deprecated once dataset mode is deprecated\n\nproject = client.create_project(name=\"dicom_project_demo\",\n media_type=lb.MediaType.Dicom)\n\n## connect ontology to your project\nproject.setup_editor(ontology)",
157+
"source": "# Project defaults to batch mode with benchmark quality settings if this argument is not provided\n# Queue mode will be deprecated once dataset mode is deprecated\n\nproject = client.create_project(name=\"dicom_project_demo\",\n media_type=lb.MediaType.Dicom)\n\n## connect ontology to your project\nproject.connect_ontology(ontology)",
158158
"cell_type": "code",
159159
"outputs": [],
160160
"execution_count": null

annotation_import/html.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
},
194194
{
195195
"metadata": {},
196-
"source": "# Create Labelbox project\nproject = client.create_project(name=\"HTML Import Annotation Demo\",\n media_type=lb.MediaType.Html)\n\n# Setup your ontology\nproject.setup_editor(\n ontology) # Connect your ontology and editor to your project",
196+
"source": "# Create Labelbox project\nproject = client.create_project(name=\"HTML Import Annotation Demo\",\n media_type=lb.MediaType.Html)\n\n# Setup your ontology\nproject.connect_ontology(\n ontology) # Connect your ontology and editor to your project",
197197
"cell_type": "code",
198198
"outputs": [],
199199
"execution_count": null

annotation_import/image.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
},
328328
{
329329
"metadata": {},
330-
"source": "# Project defaults to batch mode with benchmark quality settings if this argument is not provided\n# Queue mode will be deprecated once dataset mode is deprecated\nproject = client.create_project(name=\"Image Annotation Import Demo\",\n media_type=lb.MediaType.Image)\n\nproject.setup_editor(ontology)",
330+
"source": "# Project defaults to batch mode with benchmark quality settings if this argument is not provided\n# Queue mode will be deprecated once dataset mode is deprecated\nproject = client.create_project(name=\"Image Annotation Import Demo\",\n media_type=lb.MediaType.Image)\n\nproject.connect_ontology(ontology)",
331331
"cell_type": "code",
332332
"outputs": [],
333333
"execution_count": null

annotation_import/pdf.ipynb

Lines changed: 903 additions & 126 deletions
Large diffs are not rendered by default.

annotation_import/text.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
},
203203
{
204204
"metadata": {},
205-
"source": "# Project defaults to batch mode with benchmark quality settings if this argument is not provided\n# Queue mode will be deprecated once dataset mode is deprecated\n\nproject = client.create_project(name=\"Text Annotation Import Demo\",\n media_type=lb.MediaType.Text)\n\nproject.setup_editor(ontology)",
205+
"source": "# Project defaults to batch mode with benchmark quality settings if this argument is not provided\n# Queue mode will be deprecated once dataset mode is deprecated\n\nproject = client.create_project(name=\"Text Annotation Import Demo\",\n media_type=lb.MediaType.Text)\n\nproject.connect_ontology(ontology)",
206206
"cell_type": "code",
207207
"outputs": [],
208208
"execution_count": null

annotation_import/tiled.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
},
226226
{
227227
"metadata": {},
228-
"source": "# Project defaults to batch mode with benchmark quality settings if this argument is not provided\n# Queue mode will be deprecated once dataset mode is deprecated\n\nproject = client.create_project(name=\"Geospatial Project Demo\",\n media_type=lb.MediaType.Geospatial_Tile)\n\nproject.setup_editor(ontology)",
228+
"source": "# Project defaults to batch mode with benchmark quality settings if this argument is not provided\n# Queue mode will be deprecated once dataset mode is deprecated\n\nproject = client.create_project(name=\"Geospatial Project Demo\",\n media_type=lb.MediaType.Geospatial_Tile)\n\nproject.connect_ontology(ontology)",
229229
"cell_type": "code",
230230
"outputs": [],
231231
"execution_count": null

annotation_import/video.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
},
289289
{
290290
"metadata": {},
291-
"source": "project = client.create_project(name=\"Video Annotation Import Demo\",\n media_type=lb.MediaType.Video)\n\n## connect ontology to your project\nproject.setup_editor(ontology)",
291+
"source": "project = client.create_project(name=\"Video Annotation Import Demo\",\n media_type=lb.MediaType.Video)\n\n## connect ontology to your project\nproject.connect_ontology(ontology)",
292292
"cell_type": "code",
293293
"outputs": [],
294294
"execution_count": null

basics/batches.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
},
242242
{
243243
"metadata": {},
244-
"source": "classification_features = [\n lb.Classification(\n class_type=lb.Classification.Type.CHECKLIST,\n name=\"Quality Issues\",\n options=[\n lb.Option(value=\"blurry\", label=\"Blurry\"),\n lb.Option(value=\"distorted\", label=\"Distorted\"),\n ],\n )\n]\n\nontology_builder = lb.OntologyBuilder(tools=[],\n classifications=classification_features)\n\nontology = client.create_ontology(\n \"Ontology from new features\",\n ontology_builder.asdict(),\n media_type=lb.MediaType.Image,\n)\n\nproject.setup_editor(ontology)",
244+
"source": "classification_features = [\n lb.Classification(\n class_type=lb.Classification.Type.CHECKLIST,\n name=\"Quality Issues\",\n options=[\n lb.Option(value=\"blurry\", label=\"Blurry\"),\n lb.Option(value=\"distorted\", label=\"Distorted\"),\n ],\n )\n]\n\nontology_builder = lb.OntologyBuilder(tools=[],\n classifications=classification_features)\n\nontology = client.create_ontology(\n \"Ontology from new features\",\n ontology_builder.asdict(),\n media_type=lb.MediaType.Image,\n)\n\nproject.connect_ontology(ontology)",
245245
"cell_type": "code",
246246
"outputs": [],
247247
"execution_count": null

0 commit comments

Comments
 (0)