Skip to content

Commit fb5e526

Browse files
committed
update instructions for GradeScope
1 parent 7eb25d6 commit fb5e526

File tree

6 files changed

+35
-71
lines changed

6 files changed

+35
-71
lines changed

.github/ISSUE_TEMPLATE/new-term-nyu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ assignees: afeld
3131
- [ ] Confirm it works
3232
- [ ] Run [initial demo](https://python-public-policy.afeld.me/en/nyu/lecture_0.html#id2)
3333
- [ ] Run [Lecture 3](https://python-public-policy.afeld.me/en/nyu/lecture_3.html)
34-
- [ ] [Export to PDF](https://python-public-policy.afeld.me/en/nyu/assignments.html#submission)
3534
- [ ] New Brightspace site
3635
- [ ] Update bookmark
3736
- [ ] [Request Ed Discussions](https://support.nyu.edu/esc?id=kb_article&table=kb_knowledge&sys_id=695ab043c3cfd694d0e1b2fc05013193&recordUrl=%2Fkb_view.do%3Fsys_kb_id%3D695ab043c3cfd694d0e1b2fc05013193)
@@ -42,6 +41,7 @@ assignees: afeld
4241
- [ ] Import
4342
- [ ] Simplify name
4443
- [ ] Create recurring Zoom
44+
- [ ] Set up Gradescope
4545
- [ ] Change Assignment dates and publish them
4646
- [ ] Update participation dates, from [Lecture 0-5](https://python-public-policy.afeld.me/en/nyu/syllabus.html#schedule)
4747
- [ ] [Set up PeerMark for Final Project](https://nyu.service-now.com/sp?id=kb_article&sysparm_article=KB0018477&sys_kb_id=f89fbe521b6f9c10a575997fbd4bcb80&spa=1)

assignments.md

Lines changed: 20 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,26 @@ That is now your own copy; make edits in there directly.
6868

6969
Engaging with comments left in {{coding_env_name}} is more than welcome.
7070
{% else -%}
71-
1. Export the notebook as a PDF. From the Jupyter interface, go to:
72-
1. `File`
73-
1. `Save and Export Notebook As…`
74-
1. `PDF`
75-
1. You may need to [allow popups](https://support.google.com/chrome/answer/95472)
76-
1. Glance through the PDF to ensure everything is showing up as you intend.
77-
- In particular, check your visualizations.
78-
- What you see is what the instructors will see.
79-
- [Troubleshooting tips](#pdf-export)
80-
1. **If one of the Homeworks:** Upload the PDF to the {{lms_name}} Assignment.
81-
1. **If the Final Project:**
82-
1. In [{{lms_name}}]({{lms_url}}), go to `Content`, then `Final Project`. You should see the TurnItIn/PeerMark dashboard.
83-
1. Follow [these instructions](https://help.turnitin.com/feedback-studio/d2l/LTI13/student/submitting-a-paper/submitting-a-paper.htm) to upload the PDF.
84-
85-
When you're ready to have it formally re-graded, please resubmit through the same Assignment in {{lms_name}}.
71+
1. Export the files.
72+
- `.ipynb`:
73+
1. `File`
74+
1. `Download`
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).
80+
1. Submit.
81+
1. In [{{lms_name}}]({{lms_url}}), go to `Content`.
82+
- Note that this is _not_ the `Assignments` tab of {{lms_name}}.
83+
1. **If one of the Homeworks:**
84+
1. Click `GradeScope`.
85+
1. [Upload the files to the Assignment in GradeScope.](https://guides.gradescope.com/hc/en-us/articles/21865616724749-Submitting-a-Code-assignment)
86+
1. **If the Final Project:**
87+
1. Click `Final Project`. You should see the TurnItIn/PeerMark dashboard.
88+
1. Follow [these instructions](https://help.turnitin.com/feedback-studio/d2l/LTI13/student/submitting-a-paper/submitting-a-paper.htm) to upload the files.
89+
90+
[Resubmissions](syllabus.md#resubmission) are done the same way.
8691
{%- endif %}
8792

8893
Note: In-class exercises will not be graded.
@@ -160,33 +165,3 @@ The {{coding_env_kernel_name}} is [the place where Python is installed and the c
160165
- Make sure you aren't loading data sets you don't need.
161166
- If loading a new dataset, [make it smaller](assignments/open_ended.md#reducing-data-size)
162167
{% 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 %}
163-
164-
{% if id == "nyu" -%}
165-
### PDF export
166-
167-
[Jupyter notebook export to PDF is _fragile_, especially with interactive charts through Plotly.](meta/instructor_guide.md#jupyterhub-troubleshooting)
168-
169-
If you get a **500 error**, it could be happening for a handful of reasons. Scroll to the bottom and read the message.
170-
171-
- If it mentions `Undefined control sequence` and `\pandocbounded`, it's [an issue with the exporter](https://github.com/jupyter/nbconvert/issues/2173). Jump to the [Alternatives](#alternatives).
172-
- If it mentions a package being missing, ask on [Ed]({{discussions_url}}).
173-
- Otherwise, it may be crashing due to not being handle the complexity of the render. Try reducing your output (in the Jupyter sense) to smaller subsets. This can include:
174-
- Not displaying so many rows/values
175-
- Reducing the number of points that are plotted
176-
177-
#### Alternatives
178-
179-
If you are unable to get the direct-to-PDF export working, try:
180-
181-
- Going through HTML:
182-
1. [Export the notebook as HTML.](https://jupyterlab.readthedocs.io/en/stable/user/export.html)
183-
1. Open the HTML file in your browser.
184-
1. `File`->`Print…`
185-
1. `Save as PDF`
186-
1. If any of the visualizations are cut off:
187-
1. Cancel the Print to PDF.
188-
1. Viewing the HTML file, make the browser window narrower.
189-
- This forces the visualizations to re-draw.
190-
1. Try from `File`->`Print…` again.
191-
- An online converter, such as [Ploomer](https://www.convert.ploomber.io/)
192-
{%- endif %}

extras/lib/school.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class SchoolText:
1919
name_tool_url: str
2020
lms_profile_pic_url: str
2121
lms_notification_settings_url: str
22-
lms_grading_docs: str
23-
lms_reorder_docs: str
22+
grading_docs: str
23+
grading_extension_docs: str
2424
coding_env_name: str
2525
coding_env_origin: str
2626
coding_env_kernel_name: str
@@ -56,8 +56,8 @@ class SchoolText:
5656
name_tool_url="https://courseworks2.columbia.edu/courses/210776/external_tools/62951",
5757
lms_profile_pic_url="https://courseworks2.columbia.edu/profile",
5858
lms_notification_settings_url="https://edstem.org/us/settings/notifications",
59-
lms_grading_docs="https://community.canvaslms.com/t5/Instructor-Guide/How-do-I-use-SpeedGrader/ta-p/757",
60-
lms_reorder_docs="https://community.canvaslms.com/t5/Instructor-Guide/How-do-I-move-or-reorder-an-assignment/ta-p/1289",
59+
grading_docs="https://community.canvaslms.com/t5/Instructor-Guide/How-do-I-use-SpeedGrader/ta-p/757",
60+
grading_extension_docs="https://community.canvaslms.com/t5/Instructor-Guide/How-do-I-assign-an-assignment-to-an-individual-student/ta-p/717#assign_to_student_only",
6161
coding_env_name="Google Colab",
6262
coding_env_origin="https://colab.research.google.com",
6363
coding_env_kernel_name="runtime",
@@ -101,8 +101,8 @@ class SchoolText:
101101
name_tool_url="https://www.nyu.edu/students/student-information-and-resources/registration-records-and-graduation/forms-policies-procedures/pronouns-and-name-pronunciation.html#S1",
102102
lms_profile_pic_url="https://community.d2l.com/brightspace/kb/articles/18108-change-personal-settings-in-brightspace",
103103
lms_notification_settings_url="https://brightspace.nyu.edu/d2l/Notifications/Settings?ou=432695",
104-
lms_grading_docs="https://community.d2l.com/brightspace/kb/articles/3529-evaluate-assignments-using-the-assignments-tool",
105-
lms_reorder_docs="https://community.d2l.com/brightspace/kb/articles/3405-reorder-edit-and-delete-assignments-and-categories",
104+
grading_docs="https://guides.gradescope.com/hc/en-us/articles/22066635961357-Grading-a-Programming-Assignment#h_01HH372CKNNR01EAMQ1VS6BB7M",
105+
grading_extension_docs="https://guides.gradescope.com/hc/en-us/articles/22251762857997-Extending-assignment-release-dates-due-dates-and-time-limits",
106106
coding_env_name="JupyterHub",
107107
coding_env_origin="https://padmgp-4506-spring.rcnyu.org",
108108
coding_env_kernel_name="kernel",
@@ -126,6 +126,7 @@ class SchoolText:
126126
"conda",
127127
# "conversation", # Brightspace term, TODO
128128
"grader",
129+
"gradescope",
129130
"jupyterhub",
130131
"nyu",
131132
"padm",

meta/adrs/submission.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ If sticking with PDFs, they can be exported from {{coding_env_name}}:
4040

4141
## Decision
4242

43-
TODO
43+
Notebook + Python files through Gradescope
4444

4545
## Consequences
4646

meta/assistant_guide.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ The following should be true for each Assignment:
107107
- [ ] Points
108108
- [ ] 100 points per Assignment, except for Homework 3 and the Final Project Proposal which are 50 each
109109
- [ ] Percentage of the overall grade matches [the breakdown in the syllabus](../syllabus.md#assignments-and-evaluation)
110-
- [ ] Grouped and [ordered]({{lms_reorder_docs}}) in a logical way
110+
{% if id == "columbia" -%}
111+
- [ ] Grouped and [ordered](https://community.canvaslms.com/t5/Instructor-Guide/How-do-I-move-or-reorder-an-assignment/ta-p/1289) in a logical way
112+
{%- endif %}
111113
- [ ] Display Grade as: Percentage
112114
- [ ] Submission Type: Online, Website URL
113115
- Final Project Proposal is a Discussion
@@ -119,35 +121,25 @@ The following should be true for each Assignment:
119121
- [ ] Grading Policy Settings (under Grades tab)
120122
- [ ] **Late Policies:** Check "Automatically apply deduction to late assignments"
121123
- [ ] **Grade Posting Policies:** Automatic
122-
{% else -%}
123-
- [ ] Associated with the `Homework` gradebook category
124-
- [ ] [Enable TurnItIn similarity reports](https://support.nyu.edu/esc?id=kb_article&sysparm_article=KB0011354)
125-
- [ ] `Visible`
126124
{%- endif %}
127125

128126
### Grading
129127

130-
[How to grade in {{lms_name}}]({{lms_grading_docs}})
128+
[Official docs]({{grading_docs}})
131129

132130
{% if id == "columbia" -%}
133131
- Grading is done through [SpeedGrader](https://community.canvaslms.com/t5/Canvas-Basics-Guide/What-is-SpeedGrader/ta-p/13).
134132
- Filter the students to your particular section in the top right.
135133
- You can leave comments on particular cells through the Colab interface.
136134
- If points are deducted, explicitly state what the deductions are for.
137135
- If you're having trouble accessing the notebook in {{coding_env_name}}, make sure the URL doesn't include an `authuser` [parameter](https://developer.mozilla.org/en-US/docs/Learn_web_development/Howto/Web_mechanics/What_is_a_URL#parameters).
138-
{% else -%}
139-
- Use [annotations](https://brightspaceresources.ccc.edu/kb/how-do-i-use-the-annotation-tool-to-provide-feedback-on-an-assignment-submitted-to-an-assignment-folder/) to leave comments within the PDFs.
140136
{% endif -%}
141137
- [Scoring {% if id == "nyu" %}and regrade {% endif %}rules](../syllabus.md#assignment-scoring)
142138
- You are checking student submissions against the solutions. That said, student code/output doesn't need to look _exactly_ like what's in the solution, as long as they're doing what's asked for in each Step.
143139
When grading, points should only be deducted based on [these criteria](../syllabus.md#assignment-scoring). Please leave comments for:
144140
- Point deductions, explaining what it's being deducted for
145141
- Feedback like "this could be done better/differently," even if there isn't a corresponding point deduction
146-
{% if id == "columbia" -%}
147-
- [How to give extensions](https://community.canvaslms.com/t5/Instructor-Guide/How-do-I-assign-an-assignment-to-an-individual-student/ta-p/717#assign_to_student_only)
148-
{% else -%}
149-
- [How to give extensions](https://documentation.brightspace.com/EN/le/assignments/instructor/set_release_conditions.htm?tocpath=Instructors%7CAssess%20and%20grade%20learners%7CCreate%20assignments%20and%20assess%20submissions%7C_____7) — see "Add special access to an assignment"
150-
{%- endif %}
142+
- [How to give extensions]({{grading_extension_docs}})
151143
- Grant any request for 1-2 days made before the deadline; escalate others to the instructor.
152144
- Set the {{assignment_cutoff_name}} to the original [late submission deadline](../syllabus.md#schedule) or the new due date, whichever is later.
153145
{%- if id == "nyu" %}

meta/instructor_guide.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,11 @@ This only shows students coming off the wait list.
114114
{% else -%}
115115
## JupyterHub troubleshooting
116116

117-
Most of the issues are around Plotly rendering / PDF export. Things that have been hit repeatedly:
117+
Most of the issues are around Plotly rendering. Things that have been hit repeatedly:
118118

119-
- [Embedded image error in nbconvert](https://github.com/jupyter/nbconvert/issues/2173)
120-
- As of 11/30/24, JupyterHub is using too new a version of pandoc in the `base` environment.
121119
- [Plotly JupyterLab support](https://plotly.com/python/getting-started/#JupyterLab-Support)
122120
- [Needs to be installed on `base` environment as well](https://blog.afeld.me/getting-plotly-to-work-in-hosted-jupyterhub-26692f5ef2be)
123-
- [PDF export fidelity](https://github.com/jupyterlab/jupyterlab/issues/12113)
124121
- [orjson attribute error through Plotly](https://github.com/plotly/plotly.py/issues/3567)
125-
- [PDF exporting crashes when there's a lot of data being output / in plots](../assignments.md#pdf-export)
126122

127123
See also: comments in [`environment.yml`](https://github.com/afeld/python-public-policy/blob/main/extras/environment.yml). Attempted to distill into the [student troubleshooting guide](../assignments.md#pdf-export).
128124
{%- endif %}

0 commit comments

Comments
 (0)