Skip to content

Commit 376ed20

Browse files
committed
removal of getpass and extra installs
1 parent ec3a71e commit 376ed20

File tree

14 files changed

+12
-47
lines changed

14 files changed

+12
-47
lines changed

examples/basics/basics.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
"outputs": [],
7979
"source": [
8080
"from labelbox import Project, Dataset, Client\n",
81-
"from getpass import getpass\n",
8281
"import os"
8382
]
8483
},

examples/basics/data_rows.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
"outputs": [],
6363
"source": [
6464
"from labelbox import DataRow, Client\n",
65-
"from getpass import getpass\n",
6665
"import uuid\n",
6766
"import os"
6867
]

examples/basics/datasets.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"outputs": [],
6565
"source": [
6666
"from labelbox import Client\n",
67-
"from getpass import getpass\n",
6867
"import uuid\n",
6968
"import os"
7069
]

examples/basics/user_management.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
"source": [
6161
"from labelbox import Project, Dataset, Client, User\n",
6262
"from labelbox.schema.organization import ProjectRole\n",
63-
"from getpass import getpass\n",
6463
"import os"
6564
]
6665
},

examples/label_export/images.ipynb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,20 @@
5454
"source": [
5555
"from labelbox import Client, OntologyBuilder\n",
5656
"from labelbox.data.annotation_types import Geometry\n",
57-
"from getpass import getpass\n",
5857
"from PIL import Image\n",
5958
"import numpy as np\n",
6059
"import os"
6160
]
6261
},
6362
{
6463
"cell_type": "code",
65-
"execution_count": 4,
66-
"id": "intended-traffic",
64+
"execution_count": null,
65+
"id": "f0a98b70",
6766
"metadata": {},
6867
"outputs": [],
6968
"source": [
70-
"# Pick a project that has and of box, point, polygon, or segmentation tools tools in the ontology\n",
71-
"# and has completed labels\n",
72-
"PROJECT_ID = \"ckrxn9up85e4f0y2c9kp93e6e\""
69+
"# Pick a project that has entity tools in the ontology and has completed labels\n",
70+
"PROJECT_ID = None"
7371
]
7472
},
7573
{
@@ -79,7 +77,7 @@
7977
"metadata": {},
8078
"outputs": [],
8179
"source": [
82-
"# Add your api key\n",
80+
"# Add your api key and project\n",
8381
"API_KEY = None\n",
8482
"client = Client(api_key=API_KEY)\n",
8583
"project = client.get_project(PROJECT_ID)"

examples/label_export/text.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"outputs": [],
5555
"source": [
5656
"from labelbox import Client\n",
57-
"from getpass import getpass\n",
5857
"import requests\n",
5958
"from collections import Counter\n",
6059
"import os"

examples/label_export/video.ipynb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,9 @@
4343
"outputs": [],
4444
"source": [
4545
"!pip install labelbox\n",
46-
"!pip install requests\n",
4746
"!pip install numpy\n",
48-
"!pip install PILLOW\n",
4947
"!pip install matplotlib\n",
50-
"!pip install ndjson\n",
51-
"!pip install ipython\n",
52-
"!pip install opencv-python"
48+
"!pip install ipython"
5349
]
5450
},
5551
{
@@ -63,11 +59,9 @@
6359
"from matplotlib import pyplot as plt\n",
6460
"from IPython.display import clear_output\n",
6561
"import numpy as np\n",
66-
"from getpass import getpass\n",
6762
"import ndjson\n",
6863
"import requests\n",
6964
"import cv2\n",
70-
"from collections import Counter\n",
7165
"from typing import Dict, Any\n",
7266
"import os"
7367
]

examples/model_assisted_labeling/debugging_mal.ipynb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@
9191
"metadata": {},
9292
"outputs": [],
9393
"source": [
94-
"!pip install labelbox\n",
95-
"!pip install ndjson\n",
96-
"!pip install requests"
94+
"!pip install labelbox"
9795
]
9896
},
9997
{
@@ -108,10 +106,7 @@
108106
"from labelbox.schema.bulk_import_request import _validate_ndjson\n",
109107
"from labelbox.schema.ontology import OntologyBuilder, Tool\n",
110108
"from labelbox import Client, LabelingFrontend\n",
111-
"import ndjson\n",
112-
"import requests\n",
113109
"import uuid\n",
114-
"from getpass import getpass\n",
115110
"import os"
116111
]
117112
},

examples/model_assisted_labeling/image_mal.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"metadata": {},
5050
"outputs": [],
5151
"source": [
52-
"!pip install -q labelbox requests ndjson scikit-image PILLOW tensorflow opencv-python"
52+
"!pip install -q labelbox scikit-image tensorflow"
5353
]
5454
},
5555
{
@@ -82,13 +82,11 @@
8282
" visualize_point_ndjsons, visualize_mask_ndjsons)\n",
8383
"from io import BytesIO\n",
8484
"from typing import Dict, Any, Tuple\n",
85-
"from getpass import getpass\n",
8685
"import uuid\n",
8786
"import numpy as np\n",
8887
"from PIL import Image\n",
8988
"import requests\n",
9089
"from google.cloud import storage\n",
91-
"import datetime as dt\n",
9290
"from skimage import measure\n",
9391
"import ndjson\n",
9492
"import os"

examples/model_assisted_labeling/mal_basics.ipynb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@
6565
"outputs": [],
6666
"source": [
6767
"!pip install labelbox\n",
68-
"!pip install requests\n",
69-
"!pip install ndjson\n",
7068
"!pip install pathlib"
7169
]
7270
},
@@ -85,8 +83,7 @@
8583
"import os\n",
8684
"import requests\n",
8785
"import uuid\n",
88-
"import json\n",
89-
"from getpass import getpass"
86+
"import json"
9087
]
9188
},
9289
{

0 commit comments

Comments
 (0)