Skip to content

[BUG] Blank Empty Output Cell Coming After Progress Bar in Jupyter Notebook #3837

@mehtajinesh

Description

@mehtajinesh

Describe the bug

  • There is an empty output cell coming after progress bar is completed.

Provide a minimal code example that demonstrates the issue if you can.

from rich.progress import Progress, BarColumn
import time

# create a progress bar, increase by 10% for each iteration with a delay 2 seconds and a description of the task
progress_bar = Progress(
    "[progress.description]{task.description}",
    BarColumn(),
    "[progress.percentage]{task.percentage:>3.0f}%",
)
progess_task = progress_bar.add_task("Processing", total=10)
progress_bar.start()

for _ in range(10):
    progress_bar.update(progess_task, advance=1)
    time.sleep(2)

# close the progress bar
progress_bar.stop()

Screenshot:

Image

If you're using Rich in a Jupyter Notebook, run the following snippet in a cell
and paste the output in your bug report.

from rich.diagnose import report
report()
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions