Commit 1f20d4e
MAINT: drop pip installs that no lecture uses (#803)
* FIX: install quantecon in networks.md
`lectures/networks.md` imports `quantecon` but its pip cell never installs
it. The lecture builds today only because `markov_chains_I`, `markov_chains_II`
and `eigen_II` appear earlier in the TOC and install `quantecon` into the same
runner environment, so a full cold build satisfies the dependency by accident.
That breaks as soon as the lecture executes on its own — the normal case with a
warm `jupyter-cache`, where only the edited notebook is re-run. Observed in the
Chinese edition, which carries the same gap as a faithful translation.
Adds `quantecon` to the lecture's own pip cell and splits the cell to one
package per line, matching `input_output.md` and the style guide.
Closes #801
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* MAINT: drop pip installs that no lecture uses
Three installed packages are never imported or used:
- `input_output.md` installs `quantecon` and `pandas-datareader`; the lecture
only ever uses `quantecon_book_networks`, and has no `qe.` call anywhere.
- `networks.md` installs `pandas-datareader` but never touches it.
`pandas_datareader` is imported by exactly one lecture, `business_cycle.md`,
which installs it itself. `quantecon` is imported by `eigen_II`,
`markov_chains_I`, `markov_chains_II` and `networks`, each of which now
installs it itself. Neither is a declared dependency of
`quantecon-book-networks==1.6`, so nothing pulls them in transitively.
`xlrd` in `inflation_history.md` is deliberately left alone: it is never
imported but is required by `pd.read_excel` to read the lecture's `.xls`
dataset.
Builds on #802 — that PR makes `networks.md` install its own `quantecon`,
without which removing `input_output.md`'s copy would reopen the same hole
from the other end.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>1 parent 0066783 commit 1f20d4e
2 files changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
0 commit comments