You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: notebooks/notebooksReadme.md
+10-11Lines changed: 10 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,25 +36,24 @@ To simulate environment variables in Colab, we'll use the `colab-env` module. To
36
36
1. Open [Colaboratory](https://colab.research.google.com/) in your browser.
37
37
2. Sign in with a Google account if prompted.
38
38
3. By default, Colab opens the "Welcome to Colaboratory" notebook.
39
-
4. At the top, create a new code cell and paste in the following code:
39
+
4. At the top, create a new code cell and paste in the following code, then run the cell. It will give you a link to log into your Google account:
40
40
41
-
```
42
-
%pip install colab-env -qU
43
-
import colab_env
44
-
import os
45
-
```
41
+
```python
42
+
%pip install colab-env -qU
43
+
import colab_env
44
+
import os
45
+
```
46
46
47
-
Then run the cell. It will give you a link to log into your Google account.
48
47
5. Click the link, complete the authentication, and copy the long code it gives you.
49
48
6. Paste the code into the form field provided by the code cell, then hit `Enter`or`Return`.
50
49
7. You will then get one of the following outputs, depending on whether you've used the module with your Google account before:
51
50
 
52
51
8. In a new cell, paste in the following code block, and replace YOUR_API_KEY_HEREwith your actual API key:
0 commit comments