Skip to content

Commit 38251ca

Browse files
Fixed code indentation.
1 parent 4d598bb commit 38251ca

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

notebooks/notebooksReadme.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,24 @@ To simulate environment variables in Colab, we'll use the `colab-env` module. To
3636
1. Open [Colaboratory](https://colab.research.google.com/) in your browser.
3737
2. Sign in with a Google account if prompted.
3838
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:
4040

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+
```
4646

47-
Then run the cell. It will give you a link to log into your Google account.
4847
5. Click the link, complete the authentication, and copy the long code it gives you.
4948
6. Paste the code into the form field provided by the code cell, then hit `Enter` or `Return`.
5049
7. You will then get one of the following outputs, depending on whether you've used the module with your Google account before:
5150
![Colab import colab_env output with new vars.env](/.github/images/colab-notebook-colab_env-import-new-instance_Annotation_2020-08-05_163942.png) ![Colab import colab_env output with existing vars.env](/.github/images/colab-notebook-colab_env-import-Annotation_2020-08-05_163815.png)
5251
8. In a new cell, paste in the following code block, and replace YOUR_API_KEY_HERE with your actual API key:
5352

54-
```
55-
colab_env.envvar_handler.add_env(envname="MERAKI_DASHBOARD_API_KEY",envval="YOUR_API_KEY_HERE")
56-
print(os.getenv('MERAKI_DASHBOARD_API_KEY'))
57-
```
53+
```python
54+
colab_env.envvar_handler.add_env(envname="MERAKI_DASHBOARD_API_KEY",envval="YOUR_API_KEY_HERE")
55+
print(os.getenv('MERAKI_DASHBOARD_API_KEY'))
56+
```
5857

5958
9. Run the cell. You should see your API key printed in the output.
6059

0 commit comments

Comments
 (0)