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, 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>
Reverted the |
| return ax | ||
|
|
||
| NODE_ICON_SIZE = 17.0 # display-points per icon | ||
| NODE_ICON_SIZE = 25.0 # display-points per icon |
There was a problem hiding this comment.
I set this size based on how it appear locally in a VSCode notebook. For that this seems to make it a bit too large:
Though in the docs at https://ribasim.org/reference/test-models.html#basic I agree they appear too small. I wonder how to best get this more in line?
There was a problem hiding this comment.
I changed it in #3007 to 22, so a bit smaller than here.
Fixes #2998 - remove UserDemand from delwaq plot fraction default tracers - standardize default tracer order in ribasim python and QGIS to @DanielTollenaar's suggestion `Initial, Drainage, SurfaceRunoff, FlowBoundary, LevelBounary, Precipitation` (first on the bottom) - [Increase NODE_ICON_SIZE to 22](#2980 (comment)) I change the pixi docs task, `quarto-preview` is no more, now we have: ```bash pixi run docs ``` To preview without executing code cells (much faster for checking layout): ```bash pixi run docs -- --no-execute ``` To preview a single file: ```bash pixi run docs guide/delwaq.qmd ```


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.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.