Filter run_ribasim terminal output in docs and increase node icon size#2980
Draft
Filter run_ribasim terminal output in docs and increase node icon size#2980
Conversation
- Add #| output: false to all run_ribasim() cells across documentation files to prevent terminal output (logo with blank lines, repeated progress bar lines) from appearing in rendered documentation - Increase NODE_ICON_SIZE from 17.0 to 25.0 display-points to make node icons larger and more visible in Python plots Co-authored-by: evetion <8655030+evetion@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix formatting issues in example documentation
Suppress run_ribasim terminal output in docs and increase node icon size
Mar 12, 2026
Member
|
@copilot, we want to see the output of each run, just without all the newlines. Maybe we can tweak the terminal/shell output settings of |
Revert #| output: false from QMD files. Instead, capture stderr from Julia at the fd level in docs/run_ribasim.py and filter out: - Blank lines (invisible braille U+2800 and whitespace only) - Progress bar repetitions from OrdinaryDiffEqCore This preserves the logo, startup info and completion messages while removing the blank lines stretching the logo and the repeated progress bar output. Co-authored-by: evetion <8655030+evetion@users.noreply.github.com>
Contributor
Author
Reverted the |
Copilot
AI
changed the title
Suppress run_ribasim terminal output in docs and increase node icon size
Filter run_ribasim terminal output in docs and increase node icon size
Mar 12, 2026
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.
Documentation pages render raw terminal output from
run_ribasim()calls — the Unicode logo with blank lines, repeated progress bar lines, and log messages — wasting significant vertical space. Node icons in Python plots are also too small.docs/run_ribasim.pyto capture stderr at the file descriptor level and filter out blank lines (invisible braille U+2800 characters) and progress bar repetitions from OrdinaryDiffEqCore. The logo art, startup info, and completion messages remain visible.NODE_ICON_SIZE17→25 display-points inNodeTable.plot()Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.