Skip to content

Releases: Textualize/rich

Fix SVG output on Firefox

23 May 08:58
58bfa48
Compare
Choose a tag to compare

[12.4.2] - 2022-05-23

Fixed

  • Fix for SVG on Firefox

Changed

  • Removed excess margin from SVG, tweaked cell sizes to better render block characters

SVG Redux Redux

08 May 17:02
0fd6bc5
Compare
Choose a tag to compare

A fix and further enhancements to the SVG export.

Default color scheme is now dimmed Monokai, and there is a keyline around the terminal so it looks distinct against a dark background.

Rich SVG example

[12.4.1] - 2022-05-08

Fixed

  • Fix for default background color in SVG export #2260

Changed

  • Added a keyline around SVG terminals which is visible on dark backgrounds

SVG Redux

07 May 14:57
2c93dce
Compare
Choose a tag to compare

This release has a major change to the SVG export. It is now a simpler design, and will render outside of a browser.

deniro

Screenshot 2022-05-07 at 15 57 54

[12.4.0] - 2022-05-07

Changed

  • Rebuilt SVG export to create a simpler SVG that is more portable
  • Fix render_lines crash when render height was negative #2246

Added

  • Add padding to Syntax constructor #2247

Merge pull request #2228 from Textualize/v12.3.0

26 Apr 15:18
edcb6f9
Compare
Choose a tag to compare

[12.3.0] - 2022-04-26

Added

  • Ability to change terminal window title #2200
  • Added show_speed parameter to progress.track which will show the speed when the total is not known
  • Python blocks can now opt out from being rendered in tracebacks's frames, by setting a _rich_traceback_omit = True in their local scope #2207

Fixed

  • Fall back to sys.__stderr__ on POSIX systems when trying to get the terminal size (fix issues when Rich is piped to another process)
  • Fixed markup escaping issue #2187
  • Safari - Box appearing around SVG export #2201
  • Fixed recursion error in Jupyter progress bars #2047
  • Complex numbers are now identified by the highlighter #2214
  • Fix crash on IDLE and forced is_terminal detection to False because IDLE can't do escape codes #2222
  • Fixed missing blank line in traceback rendering #2206
  • Fixed running Rich with the current working dir was deleted #2197

Changed

  • Setting total=None on progress is now possible, and will display pulsing animation
  • Micro-optimization for Segment.divide

Merge pull request #2165 from Textualize/v12.2.0

05 Apr 11:58
0a3fcb9
Compare
Choose a tag to compare

[12.2.0] - 2022-05-05

Changed

  • Bumped typing-extensions minimum to 4.0.0
  • Bumped minimum Python version to 3.6.3

Export SVGs and file progress

03 Apr 13:51
489fafc
Compare
Choose a tag to compare

Snap export svg
Snap

[12.1.0] - 2022-04-03

Added

  • Progress.open and Progress.wrap_file method to track the progress while reading from a file or file-like object #1759
  • SVG export functionality #2101

Fixed

  • Add missing end keyword argument to Text.from_markup #2095
  • Fallback to text lexer when no lexer guessed #2133
  • Fixed issue with decoding ANSI reset #2112

Fix for piping on legacy windows plus optimizations

22 Mar 11:11
2d3152a
Compare
Choose a tag to compare

[12.0.1] - 2022-03-22

Changed

  • Improve performance of cell_length #2061
  • Improve performance of chop_cells #2077

Fixed

  • Fix capturing stdout on legacy Windows #2066

New Legacy Windows renderer

10 Mar 15:36
656b7a1
Compare
Choose a tag to compare

This release drops Colorama as a dependancy in favour of an internal Win32 render.

There are some new features for progress bars, added support for pretty printing named tuples, and a bunch of fixes.

As a major version there are a few breaking changes, see below.

[12.0.0] - 2022-03-10

Added

  • Added options to TimeRemainingColumn to render a compact time format and render elapsed time when a task is
    finished. #1992
  • Added ProgressColumn MofNCompleteColumn to display raw completed/total column (similar to DownloadColumn,
    but displays values as ints, does not convert to floats or add bit/bytes units).
    #1941
  • Replace Colorama with win32 renderer #1993
  • Add support for namedtuples to Pretty #2031

Fixed

  • In Jupyter mode make the link target be set to "_blank"
  • Fix some issues with markup handling around "[" characters https://github.com//pull/1950
  • Fix syntax lexer guessing.
  • Fixed Pretty measure not respecting expand_all #1998
  • Collapsed definitions for single-character spinners, to save memory and reduce import time.
  • Fix print_json indent type in __init__.py
  • Fix error when inspecting object defined in REPL #2037
  • Fix incorrect highlighting of non-indented JSON #2038
  • Fixed height reset in complex renderables #2042

Changed

  • Improved support for enum.Flag in ReprHighlighter #1920
  • Tree now respects justify=None, i.e. won't pad to right #1690
  • Removed rich.tabulate which was marked for deprecation
  • Deprecated rich.align.AlignValues in favor of AlignMethod

v11.2.0: Merge pull request #1936 from Textualize/opti-table

08 Feb 20:13
972dedf
Compare
Choose a tag to compare

[11.2.0] - 2022-02-08

Added

  • Add support for US spelling of "gray" in ANSI color names #1890
  • Added rich.diagnose.report to expose environment debugging logic as function #1917
  • Added classmethod Progress.get_default_columns() to get the default list of progress bar columns #1894

Fixed

  • Fixed performance issue in measuring text

v11.1.0

28 Jan 14:51
Compare
Choose a tag to compare

[11.1.0] - 2022-01-28

Added

  • Add Syntax.guess_lexer, add support for more lexers (e.g. Django templates etc.) #1869
  • Add lexer parameter to Syntax.from_path to allow for overrides #1873

Fixed

  • Workaround for edge case of object from Faiss with no __class__ #1838
  • Ensure Syntax always justifies left #1872
  • Handle classes in inspect when methods=True #1874