|
16 | 16 | "metadata": {}, |
17 | 17 | "source": [ |
18 | 18 | "<td>\n", |
19 | | - "<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/master/examples/basics/export_data.ipynb\" target=\"_blank\"><img\n", |
| 19 | + "<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/master/examples/exports/export_data.ipynb\" target=\"_blank\"><img\n", |
20 | 20 | "src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"></a>\n", |
21 | 21 | "</td>\n", |
22 | 22 | "\n", |
23 | 23 | "<td>\n", |
24 | | - "<a href=\"https://github.com/Labelbox/labelbox-python/tree/master/examples/basics/export_data.ipynb\" target=\"_blank\"><img\n", |
| 24 | + "<a href=\"https://github.com/Labelbox/labelbox-python/tree/master/examples/exports/export_data.ipynb\" target=\"_blank\"><img\n", |
25 | 25 | "src=\"https://img.shields.io/badge/GitHub-100000?logo=github&logoColor=white\" alt=\"GitHub\"></a>\n", |
26 | 26 | "</td>" |
27 | 27 | ], |
|
39 | 39 | "metadata": {}, |
40 | 40 | "source": [ |
41 | 41 | "!pip install -q \"labelbox[data]\"\n", |
42 | | - "!pip install -q urllib3 " |
| 42 | + "!pip install -q urllib3" |
43 | 43 | ], |
44 | 44 | "cell_type": "code", |
45 | 45 | "outputs": [], |
|
136 | 136 | { |
137 | 137 | "metadata": {}, |
138 | 138 | "source": [ |
139 | | - "# Set the export params to include/exclude certain fields. \n", |
| 139 | + "# Set the export params to include/exclude certain fields.\n", |
140 | 140 | "export_params= {\n", |
141 | 141 | " \"attachments\": True,\n", |
142 | 142 | " \"metadata_fields\": True,\n", |
|
180 | 180 | { |
181 | 181 | "metadata": {}, |
182 | 182 | "source": [ |
183 | | - "# Set the export params to include/exclude certain fields. \n", |
| 183 | + "# Set the export params to include/exclude certain fields.\n", |
184 | 184 | "export_params= {\n", |
185 | 185 | " \"attachments\": True,\n", |
186 | 186 | " \"metadata_fields\": True,\n", |
|
221 | 221 | "\n", |
222 | 222 | "if export_task.has_errors():\n", |
223 | 223 | " export_task.get_stream(\n", |
224 | | - " \n", |
| 224 | + "\n", |
225 | 225 | " converter=lb.JsonConverter(),\n", |
226 | 226 | " stream_type=lb.StreamType.ERRORS\n", |
227 | 227 | " ).start(stream_handler=lambda error: print(error))\n", |
|
252 | 252 | "# stream_type=lb.StreamType.ERRORS\n", |
253 | 253 | "# ).start()\n", |
254 | 254 | "\n", |
255 | | - "# if export_task.has_result(): \n", |
| 255 | + "# if export_task.has_result():\n", |
256 | 256 | "# export_task.get_stream(\n", |
257 | 257 | "# converter=lb.FileConverter(file_path=\"./result.txt\"),\n", |
258 | 258 | "# stream_type=lb.StreamType.RESULT\n", |
|
324 | 324 | " \"performance_details\": True,\n", |
325 | 325 | " \"interpolated_frames\": True,\n", |
326 | 326 | " # \"project_ids\": [\"<project_id>\", \"<project_id>\"],\n", |
327 | | - " # \"model_run_ids\": [\"<model_run_id>\", \"<model_run_id>\"] \n", |
| 327 | + " # \"model_run_ids\": [\"<model_run_id>\", \"<model_run_id>\"]\n", |
328 | 328 | "}\n", |
329 | 329 | "\n", |
330 | 330 | "# Note: Filters follow AND logic, so typically using one filter is sufficient.\n", |
|
367 | 367 | " \"performance_details\": True,\n", |
368 | 368 | " \"interpolated_frames\": True,\n", |
369 | 369 | " # \"project_ids\": [\"<project_id>\", \"<project_id>\"],\n", |
370 | | - " # \"model_run_ids\": [\"<model_run_id>\", \"<model_run_id>\"] \n", |
| 370 | + " # \"model_run_ids\": [\"<model_run_id>\", \"<model_run_id>\"]\n", |
371 | 371 | "}\n", |
372 | 372 | "\n", |
373 | 373 | "# Note: Filters follow AND logic, so typically using one filter is sufficient.\n", |
|
427 | 427 | "# stream_type=lb.StreamType.ERRORS\n", |
428 | 428 | "# ).start()\n", |
429 | 429 | "\n", |
430 | | - "# if export_task.has_result(): \n", |
| 430 | + "# if export_task.has_result():\n", |
431 | 431 | "# export_task.get_stream(\n", |
432 | 432 | "# converter=lb.FileConverter(file_path=\"./result.txt\"),\n", |
433 | 433 | "# stream_type=lb.StreamType.RESULT\n", |
|
575 | 575 | "# stream_type=lb.StreamType.ERRORS\n", |
576 | 576 | "# ).start()\n", |
577 | 577 | "\n", |
578 | | - "# if export_task.has_result(): \n", |
| 578 | + "# if export_task.has_result():\n", |
579 | 579 | "# export_task.get_stream(\n", |
580 | 580 | "# converter=lb.FileConverter(file_path=\"./result.txt\"),\n", |
581 | 581 | "# stream_type=lb.StreamType.RESULT\n", |
|
719 | 719 | "# stream_type=lb.StreamType.ERRORS\n", |
720 | 720 | "# ).start()\n", |
721 | 721 | "\n", |
722 | | - "# if export_task.has_result(): \n", |
| 722 | + "# if export_task.has_result():\n", |
723 | 723 | "# export_task.get_stream(\n", |
724 | 724 | "# converter=lb.FileConverter(file_path=\"./result.txt\"),\n", |
725 | 725 | "# stream_type=lb.StreamType.RESULT\n", |
|
877 | 877 | { |
878 | 878 | "metadata": {}, |
879 | 879 | "source": [ |
880 | | - "# Make the API request \n", |
| 880 | + "# Make the API request\n", |
881 | 881 | "req = urllib.request.Request(mask_url, headers=client.headers)" |
882 | 882 | ], |
883 | 883 | "cell_type": "code", |
|
0 commit comments