[BUG] Process bar don't show on pycharm hosted jupyter notebook output.
- [ x ] I've checked docs and closed issues for possible solutions.
- [ x ] I can't find my issue in the FAQ.
Describe the bug
Progress bar won't show in a ipynb opened on PyCharm, util the cell finished run.
In browser, the output works fine.
https://github.com/user-attachments/assets/ae3ff498-f92e-4556-8954-428a12e1aea6
https://github.com/user-attachments/assets/24aac020-273c-4c23-93d0-8649e919ffa7
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
Arch Linux with kernel 6.13.1-zen1-1-zen
Edit and run ipynb inside PyCharm 2024.3.2 (Professional Edition)
I may ask you to copy and paste the output of the following commands. It may save some time if you do it now.
If you're using Rich in a terminal:
python -m rich.diagnose
pip freeze | grep rich
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()
╭────────────────────── <class 'rich.console.Console'> ──────────────────────╮
│ A high level console interface. │
│ │
│ ╭────────────────────────────────────────────────────────────────────────╮ │
│ │ <console width=115 ColorSystem.TRUECOLOR> │ │
│ ╰────────────────────────────────────────────────────────────────────────╯ │
│ │
│ color_system = 'truecolor' │
│ encoding = 'utf-8' │
│ file = <ipykernel.iostream.OutStream object at 0x75a3af69b490> │
│ height = 100 │
│ is_alt_screen = False │
│ is_dumb_terminal = False │
│ is_interactive = False │
│ is_jupyter = True │
│ is_terminal = False │
│ legacy_windows = False │
│ no_color = False │
│ options = ConsoleOptions( │
│ size=ConsoleDimensions(width=115, height=100), │
│ legacy_windows=False, │
│ min_width=1, │
│ max_width=115, │
│ is_terminal=False, │
│ encoding='utf-8', │
│ max_height=100, │
│ justify=None, │
│ overflow=None, │
│ no_wrap=False, │
│ highlight=None, │
│ markup=None, │
│ height=None │
│ ) │
│ quiet = False │
│ record = False │
│ safe_box = True │
│ size = ConsoleDimensions(width=115, height=100) │
│ soft_wrap = False │
│ stderr = False │
│ style = None │
│ tab_size = 8 │
│ width = 115 │
╰────────────────────────────────────────────────────────────────────────────╯
╭─── <class 'rich._windows.WindowsConsoleFeatures'> ────╮
│ Windows features available. │
│ │
│ ╭───────────────────────────────────────────────────╮ │
│ │ WindowsConsoleFeatures(vt=False, truecolor=False) │ │
│ ╰───────────────────────────────────────────────────╯ │
│ │
│ truecolor = False │
│ vt = False │
╰───────────────────────────────────────────────────────╯
╭────── Environment Variables ───────╮
│ { │
│ 'TERM': 'xterm-color', │
│ 'COLORTERM': None, │
│ 'CLICOLOR': '1', │
│ 'NO_COLOR': None, │
│ 'TERM_PROGRAM': None, │
│ 'COLUMNS': None, │
│ 'LINES': None, │
│ 'JUPYTER_COLUMNS': None, │
│ 'JUPYTER_LINES': None, │
│ 'JPY_PARENT_PID': '13155', │
│ 'VSCODE_VERBOSE_LOGGING': None │
│ } │
╰────────────────────────────────────╯
platform="Linux"
Thank you for your issue. Give us a little time to review it.
PS. You might want to check the FAQ if you haven't done so already.
This is an automated reply, generated by FAQtory
hi I am seeing this as well..
Hi, I can extend to this issue the following observations:
With this snippet from the docs (which behaves the same as the longer snippet the OP used), I
a) have the same behaviour as the OP -- progressbar showing after finished -- if I leave out the first output (1),
b) and get the output "Output()" (2) if something else was printed before, like (1).
from rich.console import Console
from rich.progress import track
from time import sleep
console = Console()
console.print("Hello World!")
for i in track(range(30), description="[green]Progress[/green]"):
sleep(0.1)
I'm using PyCharm 2025.2.1.1 PRO on a Windows machine; I have rich 14.2.0 and the optional jupyter-dependency (ipywidgets 8.1.7) installed.