Upgrade quantecon-book-theme to v0.13.0 - collapsible stderr warnings#733
Merged
Upgrade quantecon-book-theme to v0.13.0 - collapsible stderr warnings#733
Conversation
|
📖 Netlify Preview Ready! Preview URL: https://pr-733--sunny-cactus-210e3e.netlify.app (aa3601c) |
Contributor
Author
|
@jstac I have been working on this idea to collapse the warnings issued by code (automatically in our theme).
This might be a bit too prominent, maybe remove the background colour? But keen to hear your thoughts on this approach (rather than suppression). |
Contributor
Author
|
Contributor
Author
|
@jstac I think this looks better and will update Warnings -> Code warnings.
|
Contributor
|
I agree, that's perfect @mmcky ! Many thanks!! |
Contributor
Author
|
@jstac once I get the green ticks I will merge and deploy. |
Contributor
Author
Contributor
|
@mmcky Perfect |
|
📖 Netlify Preview Ready! Preview URL: https://pr-733--sunny-cactus-210e3e.netlify.app (448f14a) |
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.




Overview
This PR upgrades quantecon-book-theme from v0.12.0 to v0.13.0, which includes the new collapsible stderr warnings feature.
Changes
environment.ymlto usequantecon-book-theme==0.13.0(released to PyPI)New Features in v0.13.0
✅ Collapsible stderr warnings - Automatic detection and collapsing of stderr output in notebook cells
✅ Clean "⚠ Warnings" button UI with expand/collapse functionality
✅ Improves readability by hiding verbose upstream warnings (JAX, CUDA, etc.)
✅ Full dark mode support and accessibility features
✅ Compatible with
merge_streamsoption✅ No breaking changes - purely additive
Problem Being Solved
When Jupyter notebooks execute code that produces warnings via stderr, these warnings can be verbose and visually distracting. Example warnings from QuantEcon lectures include:
While useful for debugging, these warnings disrupt reading flow and take up significant visual space. The new feature automatically detects these warnings and provides a clean collapsible interface.
Testing
Once merged, CI will build the lectures with the new theme version to validate:
Related