workspace#
Series: lecture-python-programming
File:
lectures/workspace.mdAudit date: 2026-05-28
Categories audited: writing, math, code, figures, references, links, admonitions (JAX out of scope)
Overall score: 7.4 / 10
Priority: HIGH
Score breakdown#
Category |
Score |
One-line note |
|---|---|---|
Writing |
8/10 |
Most headings already sentence case. |
Math |
N/A |
No math content. |
Code |
7/10 |
Two |
JAX |
out of scope |
— |
Figures |
4/10 |
Two |
References |
N/A |
No citations. |
Links |
9/10 |
External docs and tool links only; no improper cross-series URLs. |
Admonitions |
9/10 |
Three |
Issues#
Critical#
None found.
High severity#
[qe-fig-003] —
plt.title('Sine Wave')(line 69) andplt.title(title)(line 96) embed titles in matplotlib figures, outside any exercise/solution. Context: part of asine_wave.pydemo script being written via%%writefile. Count: 2 occurrences.
Medium severity#
[qe-fig-005] — All ~16
{figure}directives for IDE screenshots lackname:metadata.
Low severity#
[qe-writing-001] — A few multi-sentence paragraphs (e.g., lines 31–33 span two ideas).
[qe-writing-006] — One H2 heading edge-case: line 319
## Git your hands dirty— sentence case but a pun; harmless.[qe-code-001] —
def plot_wave(title : str = 'Sine Wave')on line 89: PEP8 disallows the space before:in annotations; should betitle: str.
Strengths#
Lecture title “Writing Longer Programs” follows qe-writing-006.
All major H2 sections use sentence case (“Overview”, “Working with Python files”, “Development environments”, “A step forward from Jupyter Notebooks: JupyterLab”, “A walk through Visual Studio Code”, “Git your hands dirty”).
H3 sections also follow sentence case (“Using magic commands”, “Using the terminal”, “Using the run button”).
Good use of
{figure},{note}admonitions.Uses
:caption: sine_wave.pyand:lineno-start: 1cell options idiomatically.
Recommended actions#
Replace
plt.title('Sine Wave')/plt.title(title)in the demo with figure-directive captions, or annotate as deliberately demonstrating a deprecated pattern.Add
name:metadata (e.g.,fig-jupyter-lab-cmd,fig-vs-code-home) to each{figure}directive.Fix
title : str→title: strper PEP8.Optional: tighten the few multi-sentence paragraphs.