Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 7942830

Browse files
authored
Install berpublicsearch via pip (#17)
* Install berpublicsearch via pip Now that prefect isn't a dependency won't get dependency hell * Remove all virtualenv references
1 parent b2b9605 commit 7942830

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

notebooks/sandbox.ipynb

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,6 @@
8484
"cell_type": "markdown",
8585
"metadata": {}
8686
},
87-
{
88-
"source": [
89-
"`berpublicsearch` is installed in a `virtualenv` so that its packages do not conflict with natively installed `Google Colaboratory` Python packages\n",
90-
"\n",
91-
"**Note**: to access `berpublicsearch` it is necessary to activate the virtualenv each time at the top of the cell via \n",
92-
"```bash\n",
93-
"!source /content/dependencies/bin/activate\n",
94-
"```"
95-
],
96-
"cell_type": "markdown",
97-
"metadata": {}
98-
},
9987
{
10088
"cell_type": "code",
10189
"execution_count": 1,
@@ -110,11 +98,7 @@
11098
}
11199
],
112100
"source": [
113-
"%%bash\n",
114-
"pip install virtualenv\n",
115-
"virtualenv berpublicsearch_env\n",
116-
"source /content/berpublicsearch_env/bin/activate\n",
117-
"pip install git+https://github.com/codema-dev/berpublicsearch"
101+
"!pip install git+https://github.com/codema-dev/berpublicsearch"
118102
]
119103
},
120104
{
@@ -145,7 +129,6 @@
145129
"metadata": {},
146130
"outputs": [],
147131
"source": [
148-
"!source /content/berpublicsearch_env/bin/activate\n",
149132
"from berpublicsearch.download import download_berpublicsearch\n",
150133
"\n",
151134
"download_berpublicsearch(email_address, path_to_berpublicsearch_zip)"
@@ -168,7 +151,6 @@
168151
"metadata": {},
169152
"outputs": [],
170153
"source": [
171-
"!source /content/berpublicsearch_env/bin/activate\n",
172154
"from berpublicsearch.convert import convert_to_parquet\n",
173155
"\n",
174156
"convert_to_parquet(path_to_berpublicsearch_unzipped, path_to_berpublicsearch_parquet)"
@@ -225,7 +207,6 @@
225207
"metadata": {},
226208
"outputs": [],
227209
"source": [
228-
"# !source /content/berpublicsearch_env/bin/activate\n",
229210
"# from berpublicsearch.read import read_berpublicsearch_txt\n",
230211
"# ber = read_berpublicsearch_txt(path_to_berpublicsearch_unzipped)"
231212
]

0 commit comments

Comments
 (0)