Skip to content

Commit c6e6377

Browse files
authored
Merge pull request #333 from lewagon/update-nogcp
LGTM, all changes as expected: - All updates were applied. - GCP is in separate files, and not included in the overall setup, like it was before.
2 parents f300d79 + bb939db commit c6e6377

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+3244
-3399
lines changed

LINUX.es.md

Lines changed: 165 additions & 211 deletions
Large diffs are not rendered by default.

LINUX.md

Lines changed: 167 additions & 219 deletions
Large diffs are not rendered by default.

LINUX_gcp.md

Lines changed: 51 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -175,24 +175,57 @@ Since the [service account](https://cloud.google.com/iam/docs/service-accounts)
175175

176176
⚠️ **Do not share you service account json file 🔑** ⚠️ Do not store it on your desktop, do not store it in your git codebase (even if your git repository is private), do not let it by the coffee machine, do not send it as a tweet.
177177

178-
- Go to the [service accounts page](https://console.cloud.google.com/apis/credentials/serviceaccountkey)
179-
- Select your project in the list of recent projects if asked to
180-
- Create a service account:
181-
- Click on **CREATE SERVICE ACCOUNT**:
182-
- Give a `Service account name` to that account
183-
- Click on **CREATE AND CONTINUE**
184-
- Click on **Select a role** and choose `Quick access/Basic` then **Owner**, which gives full access to all resources
185-
- Click on **CONTINUE**
186-
- Click on **DONE**
187-
- Download the service account json file 🔑:
188-
- Click on the newly created service account
189-
- Click on **KEYS**
190-
- Click on **ADD KEY** then **Create new key**
191-
- Select **JSON** and click on **CREATE**
192-
193-
![](images/gcp_create_key.png)
194-
195-
The browser has now saved the service account json file 🔑 in your downloads directory (it is named according to your service account name, something like `le-wagon-data-123456789abc.json`)
178+
#### Go to the Service Accounts page
179+
180+
Navigate to the GCP service accounts page at [this link](https://console.cloud.google.com/apis/credentials/serviceaccountkey).
181+
182+
- Select your project in the list of recent projects if asked to.
183+
- If not asked, make sure the right project is selected in the Project selecter list at the top of the page.
184+
185+
An alternate way to navigate to the Service Accounts page is from the following:
186+
187+
<img width="400" alt="01 Go to Service Accounts" src="https://wagon-public-datasets.s3.amazonaws.com/data-science-images/00-Setup/GCP/service-account-01.png">
188+
189+
#### Create a service account
190+
191+
- Click on **CREATE SERVICE ACCOUNT**.
192+
193+
<img width="400" alt="02 Create Service Account" src="https://wagon-public-datasets.s3.amazonaws.com/data-science-images/00-Setup/GCP/service-account-02.png">
194+
195+
- Give your service account a name, an id and a description, and click on **CREATE AND CONTINUE**.
196+
197+
<img width="400" alt="03 Name the service account" src="https://wagon-public-datasets.s3.amazonaws.com/data-science-images/00-Setup/GCP/service-account-03.png">
198+
199+
- Click on **Select a role** and choose `Basic` then **`Owner`**, which gives the service account full access to all resources of your GCP project.
200+
201+
<img width="400" alt="04 Add BigQuery Job User" src="https://wagon-public-datasets.s3.amazonaws.com/data-science-images/00-Setup/GCP/service-account-04.png">
202+
203+
- Click on the blue **DONE** button at the bottom of this window. We don't need to worry about the section *Grant your users access to this service account*.
204+
205+
<img width="400" alt="04 Done" src="https://wagon-public-datasets.s3.amazonaws.com/data-science-images/00-Setup/GCP/service-account-05.png">
206+
207+
208+
#### Create a json key 🔑 for this service account
209+
210+
- On the service accounts page, click on the email address of the newly created service account.
211+
212+
<img width="400" alt="05 Select the service account" src="https://wagon-public-datasets.s3.amazonaws.com/data-science-images/00-Setup/GCP/service-account-06.png">
213+
214+
- Click on the **KEYS** tab at the top of the page.
215+
216+
<img width="400" alt="06 Go to Keys" src="https://wagon-public-datasets.s3.amazonaws.com/data-science-images/00-Setup/GCP/service-account-07.png">
217+
218+
219+
- Click on **ADD KEY** then **Create new key**.
220+
221+
<img width="400" alt="07 Add Key" src="https://wagon-public-datasets.s3.amazonaws.com/data-science-images/00-Setup/GCP/service-account-08.png">
222+
223+
224+
- Select **JSON** and click on **CREATE**.
225+
226+
<img width="400" alt="08 Choose JSON and Create" src="https://wagon-public-datasets.s3.amazonaws.com/data-science-images/00-Setup/GCP/service-account-09.png">
227+
228+
- The browser has now saved the service account json file 🔑 in your downloads directory (it is named according to your service account name, something like `le-wagon-data-123456789abc.json`).
196229

197230

198231
- Store the service account json file somewhere you'll remember, for example:

LINUX_keep_current.es.md

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ cd $(pyenv root) && git pull
9393
Instala la versión actual de python:
9494

9595
```bash
96-
pyenv install 3.10.6
96+
pyenv install 3.12.9
9797
```
9898

9999
👉 Asegúrate de que el comando se ejecute completamente y luego **reinicia tu terminal**.
@@ -107,7 +107,7 @@ pyenv virtualenv-delete lewagon_current
107107
Crea un nuevo ambiente virtual:
108108

109109
```bash
110-
pyenv virtualenv 3.10.6 lewagon_current
110+
pyenv virtualenv 3.12.9 lewagon_current
111111
```
112112

113113
Define el nuevo ambiente virtual como predeterminado:
@@ -126,8 +126,8 @@ pyenv versions
126126

127127
``` bash
128128
system
129-
3.10.6
130-
3.10.6/envs/lewagon_current
129+
3.12.9
130+
3.12.9/envs/lewagon_current
131131
3.7.6
132132
3.7.6/envs/lewagon
133133
* lewagon_current
@@ -273,11 +273,19 @@ sudo service docker stop
273273
```
274274

275275

276-
### Chqueo de la configuración de Python
276+
## Chequeo de la configuración de Python
277+
278+
### Chequeo de Python y packages
279+
280+
Reinicia tu terminal:
281+
282+
```bash
283+
cd ~/code && exec zsh
284+
```
277285

278286
Verifica tu versión de Python con los siguientes comandos:
279287
```bash
280-
zsh -c "$(curl -fsSL https://raw.githubusercontent.com/lewagon/data-setup/master/checks/python_checker.sh)" 3.10.6
288+
zsh -c "$(curl -fsSL https://raw.githubusercontent.com/lewagon/data-setup/master/checks/python_checker.sh)" 3.12.9
281289
```
282290

283291
Ejecuta el comando siguiente para verificar que hayas instalado los paquetes requeridos correctamente:
@@ -290,19 +298,35 @@ Ahora ejecuta el siguiente comando para verificar que puedas cargar estos paquet
290298
python -c "$(curl -fsSL https://raw.githubusercontent.com/lewagon/data-setup/master/checks/pip_check.py)"
291299
```
292300

293-
Asegúrate de que puedas usar Jupyter:
301+
### Chequeo de Jupyter
302+
303+
Ahora verifica que puedas iniciar un servidor de notebook en tu máquina:
294304

295305
```bash
296306
jupyter notebook
297307
```
298308

299-
Y abre un notebook `Python 3`.
309+
Tu navegador web debería abrir en una ventana `jupyter`:
310+
311+
![jupyter.png](images/jupyter.png)
312+
313+
Haz clic en `New` y, en el menú desplegable, selecciona Python 3 (ipykernel):
314+
315+
![jupyter_new.png](images/jupyter_new.png)
316+
317+
Debería abrirse una pestaña en un nuevo notebook:
318+
319+
![jupyter_notebook.png](images/jupyter_notebook.png)
300320

301321
Asegúrate de que estés usando la versión correcta de python en el notebook. Abre una celda y ejecuta lo siguiente:
302322
``` python
303323
import sys; sys.version
304324
```
305325

326+
Debería mostrar `3.12.9` seguido de algunos detalles adicionales. Si no es así, consulta con un TA.
327+
328+
Puedes cerrar tu navegador web y luego cerrar el servidor jupyter con `CTRL` + `C`.
329+
306330
¡Listo! Ya tienes un virtual env de python completo con todos los paquetes tercerizados que necesitarás en el bootcamp.
307331

308332

LINUX_keep_current.md

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ cd $(pyenv root) && git pull
9393
Install the current python version :
9494

9595
```bash
96-
pyenv install 3.10.6
96+
pyenv install 3.12.9
9797
```
9898

9999
👉 Make sure that the command completes correctly and **restart your terminal**
@@ -107,7 +107,7 @@ pyenv virtualenv-delete lewagon_current
107107
Create a new virtual environment :
108108

109109
```bash
110-
pyenv virtualenv 3.10.6 lewagon_current
110+
pyenv virtualenv 3.12.9 lewagon_current
111111
```
112112

113113
Set the new virtual environment as default :
@@ -126,10 +126,10 @@ pyenv versions
126126

127127
``` bash
128128
system
129+
3.12.9
130+
3.12.9/envs/lewagon_current
129131
3.10.6
130-
3.10.6/envs/lewagon_current
131-
3.7.6
132-
3.7.6/envs/lewagon
132+
3.10.6/envs/lewagon
133133
* lewagon_current
134134
lewagon
135135
```
@@ -273,11 +273,19 @@ sudo service docker stop
273273
```
274274

275275

276-
### Python setup check up
276+
## Python setup check
277+
278+
### Python and packages check
279+
280+
Let's reset your terminal:
281+
282+
```bash
283+
cd ~/code && exec zsh
284+
```
277285

278286
Check your Python version with the following commands:
279287
```bash
280-
zsh -c "$(curl -fsSL https://raw.githubusercontent.com/lewagon/data-setup/master/checks/python_checker.sh)" 3.10.6
288+
zsh -c "$(curl -fsSL https://raw.githubusercontent.com/lewagon/data-setup/master/checks/python_checker.sh)" 3.12.9
281289
```
282290

283291
Run the following command to check if you successfully installed the required packages:
@@ -290,19 +298,35 @@ Now run the following command to check if you can load these packages:
290298
python -c "$(curl -fsSL https://raw.githubusercontent.com/lewagon/data-setup/master/checks/pip_check.py)"
291299
```
292300

301+
### Jupyter check
302+
293303
Make sure you can run Jupyter:
294304

295305
```bash
296306
jupyter notebook
297307
```
298308

299-
And open a `Python 3` notebook.
309+
Your web browser should open on a `jupyter` window:
310+
311+
![jupyter.png](images/jupyter.png)
300312

301-
Make sure that you are running the correct python version in the notebook. Open a cell and run :
313+
Click on `New` and in the dropdown menu select `Python 3 (ipykernel)`:
314+
315+
![jupyter_new.png](images/jupyter_new.png)
316+
317+
A tab should open on a new notebook:
318+
319+
![jupyter_notebook.png](images/jupyter_notebook.png)
320+
321+
Make sure that you are running the correct python version in the notebook. Open a cell and run:
302322
``` python
303323
import sys; sys.version
304324
```
305325

326+
It should output `3.12.9` followed by some more details. If not, check with a TA.
327+
328+
You can close your web browser then terminate the jupyter server with `CTRL` + `C`.
329+
306330
Here you have it! A complete python virtual env with all the third-party packages you'll need for the whole bootcamp.
307331

308332

0 commit comments

Comments
 (0)