|
100 | 100 | "print(\"Dataset Name:\" , dataset_name)" |
101 | 101 | ], |
102 | 102 | "cell_type": "code", |
103 | | - "outputs": [ |
104 | | - { |
105 | | - "name": "stdout", |
106 | | - "output_type": "stream", |
107 | | - "text": [ |
108 | | - "Project ID: cl9smiqo23hk307y27k42cajv\n", |
109 | | - "Project Name: html-editor\n", |
110 | | - "----------------------------------------\n", |
111 | | - "Dataset ID: cl9sywtkj2gsv07vk2isaeadj\n", |
112 | | - "Dataset Name: text_test.json\n" |
113 | | - ] |
114 | | - } |
115 | | - ], |
| 103 | + "outputs": [], |
116 | 104 | "execution_count": null |
117 | 105 | }, |
118 | 106 | { |
|
133 | 121 | "print(\"Dataset: \", dataset)" |
134 | 122 | ], |
135 | 123 | "cell_type": "code", |
136 | | - "outputs": [ |
137 | | - { |
138 | | - "name": "stdout", |
139 | | - "output_type": "stream", |
140 | | - "text": [ |
141 | | - "Project: <Project {'auto_audit_number_of_labels': 1, 'auto_audit_percentage': 1, 'created_at': datetime.datetime(2022, 10, 28, 15, 2, 45, tzinfo=datetime.timezone.utc), 'description': '', 'last_activity_time': datetime.datetime(2022, 10, 28, 15, 47, 41, tzinfo=datetime.timezone.utc), 'media_type': <MediaType.Image: 'IMAGE'>, 'name': 'html-editor', 'queue_mode': <QueueMode.Batch: 'BATCH'>, 'setup_complete': None, 'uid': 'cl9smiqo23hk307y27k42cajv', 'updated_at': datetime.datetime(2022, 10, 28, 15, 47, 41, tzinfo=datetime.timezone.utc)}>\n", |
142 | | - "Dataset: <Dataset {'created_at': datetime.datetime(2022, 10, 28, 20, 49, 38, tzinfo=datetime.timezone.utc), 'description': '', 'name': 'text_test.json', 'row_count': 3, 'uid': 'cl9sywtkj2gsv07vk2isaeadj', 'updated_at': datetime.datetime(2022, 10, 28, 20, 49, 40, tzinfo=datetime.timezone.utc)}>\n" |
143 | | - ] |
144 | | - } |
145 | | - ], |
| 124 | + "outputs": [], |
146 | 125 | "execution_count": null |
147 | 126 | }, |
148 | 127 | { |
|
161 | 140 | "print(dataset.name)" |
162 | 141 | ], |
163 | 142 | "cell_type": "code", |
164 | | - "outputs": [ |
165 | | - { |
166 | | - "name": "stdout", |
167 | | - "output_type": "stream", |
168 | | - "text": [ |
169 | | - "html-editor\n", |
170 | | - "text_test.json\n" |
171 | | - ] |
172 | | - } |
173 | | - ], |
| 143 | + "outputs": [], |
174 | 144 | "execution_count": null |
175 | 145 | }, |
176 | 146 | { |
|
187 | 157 | "print(project.description)" |
188 | 158 | ], |
189 | 159 | "cell_type": "code", |
190 | | - "outputs": [ |
191 | | - { |
192 | | - "name": "stdout", |
193 | | - "output_type": "stream", |
194 | | - "text": [ |
195 | | - "new description field\n" |
196 | | - ] |
197 | | - } |
198 | | - ], |
| 160 | + "outputs": [], |
199 | 161 | "execution_count": null |
200 | 162 | }, |
201 | 163 | { |
|
218 | 180 | "print(\"Number of labels :\", len(list(labels_paginated_collection)))" |
219 | 181 | ], |
220 | 182 | "cell_type": "code", |
221 | | - "outputs": [ |
222 | | - { |
223 | | - "name": "stdout", |
224 | | - "output_type": "stream", |
225 | | - "text": [ |
226 | | - "Type of collection: <class 'labelbox.pagination.PaginatedCollection'>\n", |
227 | | - "Number of labels : 0\n" |
228 | | - ] |
229 | | - } |
230 | | - ], |
| 183 | + "outputs": [], |
231 | 184 | "execution_count": null |
232 | 185 | }, |
233 | 186 | { |
|
242 | 195 | " print(\"Project has no labels !\")" |
243 | 196 | ], |
244 | 197 | "cell_type": "code", |
245 | | - "outputs": [ |
246 | | - { |
247 | | - "name": "stdout", |
248 | | - "output_type": "stream", |
249 | | - "text": [ |
250 | | - "Project has no labels !\n" |
251 | | - ] |
252 | | - } |
253 | | - ], |
| 198 | + "outputs": [], |
254 | 199 | "execution_count": null |
255 | 200 | }, |
256 | 201 | { |
|
280 | 225 | "# We can see there is only one." |
281 | 226 | ], |
282 | 227 | "cell_type": "code", |
283 | | - "outputs": [ |
284 | | - { |
285 | | - "name": "stdout", |
286 | | - "output_type": "stream", |
287 | | - "text": [ |
288 | | - "<labelbox.pagination.PaginatedCollection object at 0x7fe3c7a49e90>\n", |
289 | | - "<Project {'auto_audit_number_of_labels': 1, 'auto_audit_percentage': 1, 'created_at': datetime.datetime(2022, 10, 28, 15, 2, 45, tzinfo=datetime.timezone.utc), 'description': 'new description field', 'last_activity_time': datetime.datetime(2022, 11, 1, 19, 18, 21, tzinfo=datetime.timezone.utc), 'media_type': <MediaType.Image: 'IMAGE'>, 'name': 'html-editor', 'queue_mode': <QueueMode.Batch: 'BATCH'>, 'setup_complete': None, 'uid': 'cl9smiqo23hk307y27k42cajv', 'updated_at': datetime.datetime(2022, 11, 1, 19, 18, 21, tzinfo=datetime.timezone.utc)}>\n", |
290 | | - "None\n", |
291 | | - "None\n" |
292 | | - ] |
293 | | - } |
294 | | - ], |
| 228 | + "outputs": [], |
295 | 229 | "execution_count": null |
296 | 230 | }, |
297 | 231 | { |
|
324 | 258 | " print(f\" Name of batches in project: {b.name}\")" |
325 | 259 | ], |
326 | 260 | "cell_type": "code", |
327 | | - "outputs": [ |
328 | | - { |
329 | | - "name": "stdout", |
330 | | - "output_type": "stream", |
331 | | - "text": [ |
332 | | - " Name of project : html-editor\n", |
333 | | - " Name of batches in project: testsss\n" |
334 | | - ] |
335 | | - } |
336 | | - ], |
| 261 | + "outputs": [], |
337 | 262 | "execution_count": null |
338 | 263 | } |
339 | 264 | ] |
|
0 commit comments