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

Better handle displaying streams and progress bars #470

Open
maximlt opened this issue Dec 6, 2024 · 0 comments
Open

Better handle displaying streams and progress bars #470

maximlt opened this issue Dec 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@maximlt
Copy link
Contributor

maximlt commented Dec 6, 2024

We have some issues when building the site dealing with outputs to stdout/stderr (see screenshots below):

  1. streams are displayed on multiple cells
  2. too many progress bar outputs displayed

For 1, I just found out about he nb_merge_streams option of MyST-NB that is False by default. We could try to set it to True and see how it goes. See https://myst-nb.readthedocs.io/en/latest/render/format_code_cells.html#group-into-single-streams.

Not sure for 2 but that's definitely been annoying and has forced us to silence progress bars. For example, in #274 I set INTAKE_CACHE_PROGRESS to false to disable the progress bar automatically displayed by intake when it downloads a dataset (only during the notebook evaluation for building the site).

Streams on multiple cells:
Image

Progress bar output:
Image

Note that this worked well on the old examples.pyviz.org, that used the NotebookDirective (implemented pre MyST-NB, based on nbconvert?) and a custom theme:
Image

@maximlt maximlt added the bug Something isn't working label Dec 6, 2024
@maximlt maximlt changed the title Site: better handle displaying streams and progress bars Better handle displaying streams and progress bars Dec 6, 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
Projects
None yet
Development

No branches or pull requests

1 participant