-
-
Notifications
You must be signed in to change notification settings - Fork 55
Upgrade quantecon-book-theme to v0.13.0 - collapsible stderr warnings #733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
📖 Netlify Preview Ready! Preview URL: https://pr-733--sunny-cactus-210e3e.netlify.app (aa3601c) |
|
@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). |
|
|
@jstac I think this looks better and will update Warnings -> Code warnings.
|
|
I agree, that's perfect @mmcky ! Many thanks!! |
|
@jstac once I get the green ticks I will merge and deploy. |
|
@mmcky Perfect |
|
📖 Netlify Preview Ready! Preview URL: https://pr-733--sunny-cactus-210e3e.netlify.app (448f14a) |




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