executablebooks / MyST-NB

Parse and execute ipynb files in Sphinx
https://myst-nb.readthedocs.io
BSD 3-Clause "New" or "Revised" License
200 stars 80 forks source link

Skip empty output text blocks? #593

Open zmoon opened 2 months ago

zmoon commented 2 months ago

Context

With Rich progress bars, extra empty output blocks are produced.

For example:

image

The empty blocks each consist of two

<div class="output text_html">
  <pre style="white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace"></pre>
</div>

I'll try to come up with a minimal example with code...

Proposal

It would be nice for such empties to be skipped, perhaps optionally.

Tasks and updates

No response