Textualize / rich

Rich is a Python library for rich text and beautiful formatting in the terminal.
https://rich.readthedocs.io/en/latest/
MIT License
49.04k stars 1.71k forks source link

[BUG]: console width should be `None` in scrollable consoles (jupyter) #3330

Open NickCrews opened 5 months ago

NickCrews commented 5 months ago

Describe the bug

from rich.table import Table

t = Table()
t.add_column("col1", no_wrap=True)
t.add_column("col2")
content = "abc" * 100
t.add_row(content, content)
t

renders as

image

It would be better if the second column wasn't cut off, since it is possible to scroll sideways.

In ibis, we get around this by checking for Console.is_jupyter, and manually updating the options to the Console. But it would be nice if this was default behavior.

github-actions[bot] commented 5 months ago

We found the following entry in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory