Skip to content

_config.yml: remove the launch button, whose notebooks repository doesn't exist - #85

Merged
mmcky merged 1 commit into
mainfrom
remove-dead-colab-button
Nov 25, 2026
Merged

mmcky merged 1 commit into
mainfrom
remove-dead-colab-button

Conversation

@mmcky

@mmcky mmcky commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

What this changes

Every dp page has a launch button that opens the page's notebook in Colab, from https://colab.research.google.com/github/QuantEcon/lecture-dp.notebooks/blob/main/<page>.ipynb. That repository was never created: dp builds HTML only and publishes no notebooks, so the button leads to a missing notebook on every page.

This pull request removes the button. quantecon-book-theme shows it only when nb_repository_url is set (layout.html), so nb_repository_url goes, and launch_buttons, which only configured that button, goes with it. Removing launch_buttons alone would not do: with nb_repository_url still set and no launch service, the theme's add_hub_urls reads a Colab address that was never set. Nothing else on the page changes; dp pages had no notebook download either.

dp's lectures all come from intermediate and advanced, where the Colab button works. Giving dp its own notebooks is a separate question, raised for the download button in its own issue.

The monorepo

sites/dp/_config.yml in QuantEcon/lectures copies this file verbatim, so after this merges the nightly drift check reports that copy as out of step, and a pull request there copies the new file.

Validation

Fresh builds of main and of this branch the same day, dp's way (cache.yml with no cache, then ci.yml rendering each side's own fresh cache), compared page by page; the evidence comment follows below.

Requested by @mmcky on 2026-11-25 in the lecture monorepo's working session: "Yes please", to "Shall I open a PR to lecture-dp removing the dead Colab button?"

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMZxoF4m8xKRb8BcHnG

…sn't exist

The theme's launch button (Colab) pointed every page at
QuantEcon/lecture-dp.notebooks, which was never created: dp builds HTML
only and publishes no notebooks, so the button led to a missing
notebook on every page. Removing nb_repository_url removes the button
(the theme shows it only when nb_repository_url is set); launch_buttons
goes with it, since it only configured that button.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZxoF4m8xKRb8BcHnG
@mmcky

mmcky commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Validation: a full validation

dp's way, as for #81 and #84: a fresh build with no cache of main and of this pull request, each executing all 51 notebooks (cache.yml), each then rendered by ci.yml, which restored exactly that build's cache.

main at c7f9905, 2026-11-25 this pull request at 8e37432, 2026-11-25
fresh build 45586326661 45586332481
render 45591530079 45591535336
  • The change. On main's render, 55 of the 57 pages (every lecture page) have the launch button and link to QuantEcon/lecture-dp.notebooks; on this pull request's render, none does. The 11 pages that still mention Colab do so in their lecture text ("Google Colab has a free tier with GPUs"), the same on both sides. No page's prose differs. (The status page differs too, with its build times.)
  • What stays. The theme still writes its hidden launcher dialog into each page, now with no launch service in it. Nothing opens it: the theme's script shows the dialog only from the launch button, which is gone. One side effect, from reading the theme's code rather than seen in a browser: for a reader whose browser remembers a public launch choice for quantecon.github.io, the dialog's inline script reads an empty list of services and logs an error to the browser console; nothing on the page changes.
  • The environment: both fresh builds ran in the same image, the same digest (sha256:833e117fefbd…).
  • Build logs: no Sphinx warning on either side; the fresh builds' warning lines are identical, and so are the renders'.
  • Cell outputs: the warnings and errors are the same on both sides, page by page, except one count on odu, explained in its row: its solver prints a progress line per few iterations, the tool counts those lines as "Error", and this side converged sooner.
  • Packages installed inside cells: five pages run pip install in a cell (amss, calvo_machine_learn, chang_credible, chang_ramsey, odu); on each, "Successfully installed" lists the same packages at the same versions on both sides.
  • The HTML: 31 of 57 pages differ, every figure compared by content, all in their outputs: noise of the kinds in environment.yml: the Anaconda channels are defaults #81's and smoothing, smoothing_tax: take advanced's copies, linking perm_income_cons with {doc} #84's comparisons.
Page What differs between main's render and this pull request's
amss %%time timings
amss2 printed values in their last digits, figure 2 of 2, from a long simulation whose Markov states are drawn without a seed, and figure 1 on 0.5% of its pixels, a simulation along a fixed history whose values differ by round-off
amss3 printed values in their last digits, and figures 1 and 4 of 5, from a long simulation whose Markov states are drawn without a seed
calvo_machine_learn the printed elapsed time and the progress bars of the cell's pip install, figure 3 of 5 on under 0.05% of its pixels, and figures 4 and 5, the same plots saved at a slightly different size
career figure 5 of 6, from qe.random.draw, which draws without a seed, and figure 2 on under 0.05% of its pixels
chang_credible the progress spinner of the cell's pip install
chang_ramsey the printed elapsed time (105.0 against 218.2 seconds), a printed pair at round-off level, and figures 4 to 8 of 8, each on a fraction of a percent of its pixels
cons_news printed values at round-off level (2.0e-11 and the like), memory addresses, and figures 3 and 4 of 4, from unseeded LSS.simulate draws
discrete_dp %timeit timings and the printed elapsed times
dyn_stack round-off (including the sign of a zero), and figure 6 of 6 on 0.1% of its pixels
ifp_discrete relative speed (10.75 against 7.99)
ifp_egm the NumPy/JAX speed-up, 10.23x against 12.42x
ifp_egm_transient_shocks the NumPy/JAX speed-up, 15.10x against 17.39x
ifp_opi speed-ups, and figure 2 of 2, which plots run times
jv figures 1 and 2 of 3, from unseeded draws (np.random.beta, np.random.uniform)
lagrangian_lqdp %%timeit timings, and a printed matrix whose zeros come out as round-off (1e-17)
lq_inventories figures 1, 2, 4, 5, 6, 12, 15 and 16 of 16, from simulate, which calls LQ.compute_sequence without a seed
lqcontrol figures 1, 2, 8, 9 and 10 of 10, from LQ.compute_sequence, which draws its shocks without a seed
lqramsey figures 1 to 6 of 6, from paths drawn with numpy's unseeded randn
markov_jump_lq figure 51 of 52, from compute_sequence, which draws its shocks without a seed
odu the solvers' progress lines (one converged in 31 iterations rather than 35, the other in 26 rather than 25), from unseeded draws, and 14 of its 15 figures, from unseeded draws (np.random.beta, np.random.uniform)
os_stochastic a printed timing
perm_income figures 1 and 2 of 3, from unseeded draws (np.random.randn)
perm_income_cons printed values in their last digits, and figures 1 to 6 of 6, from lss.simulate, which draws without a seed
smoothing figures 1 and 2 of 2: figure 1 from a simulation whose seed is itself drawn at random (np.random.randint), figure 2 on 0.1% of its pixels
smoothing_tax printed values in their last digits, and six of its 20 figures, each on at most 0.1% of its pixels
status the build times
tax_smoothing_1 figures 1 to 3 of 3, from compute_sequence, which draws its shocks without a seed
tax_smoothing_2 figures 1 to 4 of 4, from compute_sequence, which draws its shocks without a seed
tax_smoothing_3 figures 1 and 2 of 2, from compute_sequence, which draws its shocks without a seed
un_insure the solver's printed error, in its last digits

Conclusion. The pull request removes the launch button from every lecture page, and nothing else a reader would see; every other difference is output noise of the kinds this series' builds already show between runs.

@mmcky
mmcky merged commit 3267d81 into main Nov 25, 2026
3 checks passed
@mmcky
mmcky deleted the remove-dead-colab-button branch November 25, 2026 10:12
mmcky added a commit to QuantEcon/lectures that referenced this pull request Nov 25, 2026
…3267d81 (#95)

The pool follow-up to QuantEcon/lecture-dp#85: sites/dp/_config.yml drops nb_repository_url and launch_buttons, so the dead launch (Colab) button goes from the pool's dp site too; with its site-addition lines set aside, the file is byte for byte dp's at 3267d81. sync/state.yml pins dp at 3267d81 (was bfb1d7b), so tonight's drift check compares like with like. dp is a consumer, so the pin brings no lecture into the pool. CI's site builds passed, and none of the dp build's pages has the button.

Merged on @mmcky's "Merge as recommended" in the organiser session.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant