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
+26-24Lines changed: 26 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,8 +52,8 @@ That is now your own copy; make edits in there directly.
52
52
- Allows/encourages you to output intermediate results, ensuring that everything is working as expected.
53
53
- You are always welcome to **add cells**. You probably don't want more than a few lines of code in each. This makes the spot checking of intermediate results easier.
54
54
- Make notebooks [idempotent](https://en.wikipedia.org/wiki/Idempotence)
55
-
- Makes your work reproducible.
56
-
- Use `Restart and run all` (⏩ button in toolbar).
55
+
- Makes your work reproducible.
56
+
- Use `Restart and run all` (⏩ button in toolbar).
57
57
58
58
## Submission
59
59
@@ -70,13 +70,13 @@ Engaging with comments left in {{coding_env_name}} is more than welcome.
70
70
{% else -%}
71
71
1. Export the files.
72
72
-`.ipynb`:
73
-
1.`File`
74
-
1.`Download`
73
+
1.`File`
74
+
1.`Download`
75
75
-`.py`:
76
-
1.`File`
77
-
1.`Save and Export Notebook As`
78
-
1.`Executable Script`
79
-
- You may need to [allow popups](https://support.google.com/chrome/answer/95472).
76
+
1.`File`
77
+
1.`Save and Export Notebook As`
78
+
1.`Executable Script`
79
+
- You may need to [allow popups](https://support.google.com/chrome/answer/95472).
80
80
1. Submit.
81
81
1. In [{{lms_name}}]({{lms_url}}), go to `Content`.
82
82
- Note that this is _not_ the `Assignments` tab of {{lms_name}}.
@@ -101,18 +101,18 @@ Engaging with comments left in {{coding_env_name}} is more than welcome.
101
101
{% if id == "columbia" -%}
102
102
-**Mounting Google Drive is slow or fails:** See [the Google Colab help page](https://research.google.com/colaboratory/faq.html#drive-timeout).
103
103
-**Can't load a file from Drive with `requests.get()`:** Use [`open()`](https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files).
104
-
-[How to read a JSON file](https://www.freecodecamp.org/news/python-parse-json-how-to-read-a-json-file/#how-to-parse-and-read-a-json-file-in-python)
104
+
-[How to read a JSON file](https://www.freecodecamp.org/news/python-parse-json-how-to-read-a-json-file/#how-to-parse-and-read-a-json-file-in-python)
105
105
{% else -%}
106
106
-**`Error: Command '['git', 'diff', '..origin/nyu', '--name-status']' returned non-zero exit status 128` when trying to launch {{coding_env_name}}:** Something got corrupted in your copy of the files that come through [`nbgitpuller`](https://nbgitpuller.readthedocs.io/). Easiest thing is to move the existing ones and restart with a fresh copy.
1. There should be a `python-public-policy` folder. Rename it, something like `python-public-policy-old`.
109
+
- If you've edited any of the template notebooks, you can find them in that `-old` folder.
110
+
1. Repeat the [getting started](#getting-started) steps.
111
111
{% endif -%}
112
112
-**When using `choropleth_map()`, nothing appears on the map:** Make sure:
113
-
- Your `locations` corresponds to the DataFrame column name and `featureidkey` is set to `properties.<property name>` matching the GeoJSON
114
-
- See [how we found the property name to use](lecture_3.ipynb#geospatial-data)
115
-
- The column and the GeoJSON properties have values that match
113
+
- Your `locations` corresponds to the DataFrame column name and `featureidkey` is set to `properties.<property name>` matching the GeoJSON
114
+
- See [how we found the property name to use](lecture_3.ipynb#geospatial-data)
115
+
- The column and the GeoJSON properties have values that match
116
116
-**`SettingWithCopyWarning`:**[How to fix](https://www.dataquest.io/blog/settingwithcopywarning/)
117
117
-**`input()` stuck:** Jupyter can be a bit buggy when dealing with interactive input. If it seems to get stuck or you aren't seeing a prompt when you'd expect one, try clicking the `{{coding_env_kernel_name.title()}}` menu then `Restart Kernel`.
118
118
-**The values are out of order along the axis of a Plotly chart:** Make sure that:
@@ -159,13 +159,15 @@ The {{coding_env_kernel_name}} is [the place where Python is installed and the c
159
159
160
160
{% if id == "nyu" -%}
161
161
- Make sure `Python [conda env:python-public-policy]` is selected as the {{coding_env_kernel_name}}.
162
-
- Shows in the top right of the notebook interface
163
-
- To change:
164
-
1. Open the `{{coding_env_kernel_name.title()}}` menu
- If your {{coding_env_kernel_name}} is repeatedly crashing, you're probably running out of memory.
169
-
- Make sure you aren't loading data sets you don't need.
170
-
- If loading a new dataset, [make it smaller](assignments/open_ended.md#reducing-data-size)
171
-
{% if id == "nyu" %}- Close {{coding_env_kernel_name}}s you aren't using from the [Running]({{coding_env_origin}}/user-redirect/tree#running) page.{% endif %}
169
+
- Make sure you aren't loading data sets you don't need.
170
+
- If loading a new dataset, [make it smaller](assignments/open_ended.md#reducing-data-size)
171
+
{% if id == "nyu" %}
172
+
- Close {{coding_env_kernel_name}}s you aren't using from the [Running]({{coding_env_origin}}/user-redirect/tree#running) page.
0 commit comments