You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
I couldn't find anyone talking about this anywhere else online, so I decided to post this here as a potential bug. Not quite sure what is going wrong, could even be a problem with my setup specifically.
I'm running a .ipynb Jupyter Notebook on VSCode with the standard Jupyter extension pack provided by Microsoft.
Printing an normal output works fine, but when I import and use anything from the rich library (progress bar, rich print etc.), every subsequent line printed to the notebook generates a new output cell.
When you print a ton of stuff in one cell, notebooks limit how many lines you can see at once and adds a scrollbar. This feature doesn't work when every printed line is in its own output cell and makes reading outputs and scrolling through notebooks extremely tedious.
This isn't an issue when executing similar code in google colab, so I believe it to be a problem native to VSCode's inbuilt notebook output renderer. This is the renderer I am currently using: the only other one natively provided being text/plain, which doesn't render many rich elements (such as progress bars) at all.
I have scoured the web for better Jupyter notebook output renderers to no avail. If there is one that works better for rich, please let me know!
Not sure how to fix this if it is an issue on my end, gave it a bunch of tries to no avail. Any help would be wonderful. Thanks!
Edit: Wanted to add that one such fix I tried was using the rich.jupyter library. Unfortunately, the print statement from there causes the exact same issue as well.
P.S. I'm new to github in general and a novice coder so forgive me if the report is crude or dated or if there is something I missed.
Amodh1257
changed the title
[BUG]
[BUG] Rich library with Jupyter Notebooks in VSCode generates new Output cells for each individual output
Sep 8, 2024
Amodh1257
changed the title
[BUG] Rich library with Jupyter Notebooks in VSCode generates new Output cells for each individual output
[BUG] Rich library with Jupyter Notebooks in VSCode generates new Output Cells for each individual output
Sep 8, 2024
Hi all,
I couldn't find anyone talking about this anywhere else online, so I decided to post this here as a potential bug. Not quite sure what is going wrong, could even be a problem with my setup specifically.
I'm running a .ipynb Jupyter Notebook on VSCode with the standard Jupyter extension pack provided by Microsoft.
Printing an normal output works fine, but when I import and use anything from the rich library (progress bar, rich print etc.), every subsequent line printed to the notebook generates a new output cell.
When you print a ton of stuff in one cell, notebooks limit how many lines you can see at once and adds a scrollbar. This feature doesn't work when every printed line is in its own output cell and makes reading outputs and scrolling through notebooks extremely tedious.
This isn't an issue when executing similar code in google colab, so I believe it to be a problem native to VSCode's inbuilt notebook output renderer. This is the renderer I am currently using: the only other one natively provided being text/plain, which doesn't render many rich elements (such as progress bars) at all.
I have scoured the web for better Jupyter notebook output renderers to no avail. If there is one that works better for rich, please let me know!
Not sure how to fix this if it is an issue on my end, gave it a bunch of tries to no avail. Any help would be wonderful. Thanks!
Edit: Wanted to add that one such fix I tried was using the rich.jupyter library. Unfortunately, the print statement from there causes the exact same issue as well.
P.S. I'm new to github in general and a novice coder so forgive me if the report is crude or dated or if there is something I missed.
The text was updated successfully, but these errors were encountered: