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: assignments.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ To edit/execute a Homework/lecture notebook:
11
11
1. Open the page for the Homework/Lecture on this site.
12
12
- For example: [Homework 0](hw_0.ipynb)
13
13
1. Click the launch button (🚀) at the top.
14
-
1. You should now see the notebook in {{coding_env_name}}.
14
+
1. You should now see the notebook in Google Colab.
15
15
1. Make sure you're using your school Google account. [How to switch.](https://support.google.com/accounts/answer/1721977)
16
16
1. Click `Copy to Drive`.
17
17
@@ -40,7 +40,7 @@ You'll create your own notebook.
40
40
-**[Don't repeat yourself (DRY).](https://dzone.com/articles/is-your-code-dry-or-wet)** If you find yourself copying and pasting code within your file(s), there's probably a better way to do it.
41
41
-**Avoid [hard-coding](https://www.quora.com/What-does-hard-coded-something-mean-in-computer-programming-context) values.** Don't rely on things like row numbers or column order being stable, in case the dataset were to be updated.
42
42
43
-
### Jupyter / {{coding_env_name}}
43
+
### Jupyter / Google Colab
44
44
45
45
- Keep each cell to only a few lines of code.
46
46
- Allows/encourages you to output intermediate results, ensuring that everything is working as expected.
@@ -62,7 +62,7 @@ You'll create your own notebook.
62
62
- The URL should be of the format `https://colab.research.google.com/drive/<long identifier>`. If it's `https://colab.research.google.com/github/...`, click `Copy to Drive`.
63
63
1. Paste your notebook URL in the {{lms_name}} Assignment.
64
64
65
-
Engaging with comments left in {{coding_env_name}} is more than welcome.
65
+
Engaging with comments left in Google Colab is more than welcome.
66
66
67
67
### Notes
68
68
@@ -96,7 +96,7 @@ Engaging with comments left in {{coding_env_name}} is more than welcome.
96
96
97
97
### {{coding_env_kernel_name|title}} and memory issues
98
98
99
-
The {{coding_env_kernel_name}} is [the place where Python is installed and the code is actually executing](https://docs.jupyter.org/en/stable/projects/kernels.html#kernels), in the cloud somewhere. If your {{coding_env_kernel_name}} is repeatedly crashing, you're probably running out of memory.
99
+
The runtime is [the place where Python is installed and the code is actually executing](https://docs.jupyter.org/en/stable/projects/kernels.html#kernels), in the cloud somewhere. If your runtime is repeatedly crashing, you're probably running out of memory.
100
100
101
101
- Make sure you aren't loading data you don't need.
102
102
- If loading a new dataset, [make it smaller](assignments/open_ended.md#reducing-data-size)
Copy file name to clipboardExpand all lines: assignments/open_ended.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,15 +65,15 @@ Probably not realistic to make visualizations that are as fancy as these ones ma
65
65
66
66
## Storing data
67
67
68
-
To work with uploaded files in {{coding_env_name}}, you have two options.
68
+
To work with uploaded files in Google Colab, you have two options.
69
69
70
70
### Direct upload
71
71
72
72
_Fewer steps, but your file(s) will disappear when your session ends._
73
73
74
-
<imgsrc="../extras/img/colab_upload_direct.png"height=261alt="Steps to get data into {{coding_env_name}} directly"/>
74
+
<imgsrc="../extras/img/colab_upload_direct.png"height=261alt="Steps to get data into Google Colab directly"/>
75
75
76
-
1. In the {{coding_env_name}} sidebar, click the `Files` icon (A).
76
+
1. In the Google Colab sidebar, click the `Files` icon (A).
77
77
1. Click the upload button (B).
78
78
1. Select your file.
79
79
1. You'll use `read_csv("MY_FILENAME.csv")` in your code.
@@ -82,21 +82,21 @@ _Fewer steps, but your file(s) will disappear when your session ends._
82
82
83
83
_More steps, but your file(s) are preserved between sessions._
84
84
85
-

85
+

86
86
87
87
1. Upload the file(s) somewhere in [Drive](https://drive.google.com/drive/my-drive).
88
-
1. In the {{coding_env_name}} sidebar, click the `Files` icon (A).
88
+
1. In the Google Colab sidebar, click the `Files` icon (A).
89
89
1. Click the `Mount Drive` icon (B).
90
90
- You may need to run the code it injects to authorize it (C).
91
-
- Think of this as attaching your Drive to your {{coding_env_name}} instance, as if you were plugging in a USB flash drive.
91
+
- Think of this as attaching your Drive to your Google Colab instance, as if you were plugging in a USB flash drive.
92
92
1. Navigate to the file (D).
93
93
- You may need to click into `content`, then `drive`.
94
94
1. Next to the filename, click the three dots.
95
95
1. Click `Copy path` (E).
96
96
- The value should be something like `/content/drive/My Drive/...`.
97
97
1. Use this path with `read_csv()` (F).
98
98
99
-
{{coding_env_name}} cannot access the file on your local machine; in other words, the path shouldn't start with `C:\\` or anything like that. [More info about file paths.](https://www.codecademy.com/resources/docs/general/file-paths)
99
+
Google Colab cannot access the file on your local machine; in other words, the path shouldn't start with `C:\\` or anything like that. [More info about file paths.](https://www.codecademy.com/resources/docs/general/file-paths)
" - [It's ok to use generative AI](https://python-public-policy.afeld.me/en/{{school_slug}}/syllabus.html#academic-integrity), but when you're new to coding, you will learn more if you write the code yourself.\n",
40
-
"- Share your {{coding_env_name}} folder\n",
40
+
"- Share your Google Colab folder\n",
41
41
" 1. Open [Google Drive](https://drive.google.com/)\n",
42
42
" 1. If you are signed into multiple Google accounts, [switch](https://support.google.com/accounts/answer/1721977) to your Columbia one.\n",
43
43
" 1. [Share the `Colab Notebooks` folder](https://support.google.com/drive/answer/7166529) with [the instructor{% if id == \"columbia\" %} and {{assistant_name}}{% endif %}](https://python-public-policy.afeld.me/en/{{school_slug}}/syllabus.html#instructor-information) as a `Commenter`\n",
@@ -194,7 +194,7 @@
194
194
"\n",
195
195
"[Kaggle](https://www.kaggle.com/) is a data science platform that has various [tutorials](https://www.kaggle.com/learn/overview) and [competitions](https://www.kaggle.com/competitions), which you may want to go back to later. You are welcome to create a Kaggle account to save your progress, but it's not required.\n",
196
196
"\n",
197
-
"Kaggle, like {{coding_env_name}}, is built around Jupyter notebooks. They are not _exactly_ the same, but will feel similar. Do the following Kaggle tutorial. You do not need to turn this in.\n",
197
+
"Kaggle, like Google Colab, is built around Jupyter notebooks. They are not _exactly_ the same, but will feel similar. Do the following Kaggle tutorial. You do not need to turn this in.\n",
198
198
"\n",
199
199
"- [Creating, Reading, and Writing with Pandas](https://www.kaggle.com/residentmario/creating-reading-and-writing)\n",
Copy file name to clipboardExpand all lines: joining_late.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ If you're not officially [registered](registration.md) for the course but want t
24
24
- Look through the [important links](index.md#important-links), including [past lectures](syllabus.md#schedule).
25
25
-[Recording](https://columbiauniversity.zoom.us/rec/play/dBBFt7QTwZTfETvu0_VQzqT_pt6K0-4PvrRJF0fDUVH8yKoIHP9WOCl8hGRSyIu3HEiKxPQ2woCwDQ-I.OGynUNH57slJqZki) of [Lecture 0](lecture_0.ipynb)
26
26
- You won't be able to access [{{submission_tool_name}}]({{submission_tool_url}}) or the [Ed Discussions]({{discussions_url}}).
27
-
-[Complete the Assignment(s) in {{coding_env_name}} as normal](assignments.md), waiting until you are registered to [submit](assignments.md#submission) them.
27
+
-[Complete the Assignment(s) in Google Colab as normal](assignments.md), waiting until you are registered to [submit](assignments.md#submission) them.
0 commit comments