Repository navigation
Truncate oversized stdout outputs in chap07 and chap08 notebooks - #17
Closed
AllenDowney with Copilot wants to merge 2 commits into
Closed
AllenDowney with Copilot wants to merge 2 commits into
AllenDowney with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: AllenDowney <1882093+AllenDowney@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix unable to render code block error for chapters 7 and 8
Truncate oversized stdout outputs in chap07 and chap08 notebooks
Oct 14, 2026
Owner
|
Superseded by d585312, which strips the outputs no build renders (chap07 is now 55 KB, chap08 67 KB), and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The GitHub notebook preview shows "Unable to render code block" for
chap07.ipynbandchap08.ipynb. The notebooks run fine on Colab, which matches an output-size problem: these are the only two with very large saved stdout outputs.I haven't been able to reproduce the preview failure, so the cause is inferred from file size and not confirmed.
soln/chap07.ipynb(2.3 MB → 58 KB)for line in open('words.txt'): print(word)cell had saved the entire word list, about 1.5 MB across two stdout streams.....soln/chap08.ipynb(445 KB → 71 KB)....The rest of both notebooks is unchanged, and the diff is deletions plus the two replacement streams. The truncated outputs no longer show the full word list or the full regex matches. I did not re-run the notebooks.