|
84 | 84 | "cell_type": "markdown", |
85 | 85 | "metadata": {} |
86 | 86 | }, |
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 | | - }, |
99 | 87 | { |
100 | 88 | "cell_type": "code", |
101 | 89 | "execution_count": 1, |
|
110 | 98 | } |
111 | 99 | ], |
112 | 100 | "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" |
118 | 102 | ] |
119 | 103 | }, |
120 | 104 | { |
|
145 | 129 | "metadata": {}, |
146 | 130 | "outputs": [], |
147 | 131 | "source": [ |
148 | | - "!source /content/berpublicsearch_env/bin/activate\n", |
149 | 132 | "from berpublicsearch.download import download_berpublicsearch\n", |
150 | 133 | "\n", |
151 | 134 | "download_berpublicsearch(email_address, path_to_berpublicsearch_zip)" |
|
168 | 151 | "metadata": {}, |
169 | 152 | "outputs": [], |
170 | 153 | "source": [ |
171 | | - "!source /content/berpublicsearch_env/bin/activate\n", |
172 | 154 | "from berpublicsearch.convert import convert_to_parquet\n", |
173 | 155 | "\n", |
174 | 156 | "convert_to_parquet(path_to_berpublicsearch_unzipped, path_to_berpublicsearch_parquet)" |
|
225 | 207 | "metadata": {}, |
226 | 208 | "outputs": [], |
227 | 209 | "source": [ |
228 | | - "# !source /content/berpublicsearch_env/bin/activate\n", |
229 | 210 | "# from berpublicsearch.read import read_berpublicsearch_txt\n", |
230 | 211 | "# ber = read_berpublicsearch_txt(path_to_berpublicsearch_unzipped)" |
231 | 212 | ] |
|
0 commit comments