Skip to content
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

Skip empty output text blocks? #593

Open
zmoon opened this issue Apr 16, 2024 · 2 comments
Open

Skip empty output text blocks? #593

zmoon opened this issue Apr 16, 2024 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@zmoon
Copy link

zmoon commented Apr 16, 2024

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

@zmoon zmoon added the enhancement New feature or request label Apr 16, 2024
@bsipocz
Copy link
Collaborator

bsipocz commented Sep 20, 2024

@zmoon - Have you tried nb_merge_streams = True? I got reasonably nice results for some notebooks that previously were super ugly. And if that doesn't help, could you please try using the master branch? we merged a possibly related fix today from #604.

@zmoon
Copy link
Author

zmoon commented Sep 23, 2024

Hi @bsipocz , I tried nb_merge_streams = True and got the same results (myst-nb 1.0.0 and in 1.1.1 as well). With current master branch, also same results, regardless of nb_merge_streams setting.

@bsipocz bsipocz added the bug Something isn't working label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants