diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c7332fee..f25651c4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased -## [13.9.4] - 2024-11-01 +### Fixed + +- Fixed empty line being printed after Progress context is exited on notebooks(vscode) https://github.com/Textualize/rich/pull/3562 ### Changed diff --git a/rich/console.py b/rich/console.py index 3ec9a8aab..a607d2d2f 100644 --- a/rich/console.py +++ b/rich/console.py @@ -2032,8 +2032,9 @@ def _write_buffer(self) -> None: if self.is_jupyter: # pragma: no cover from .jupyter import display - display(self._buffer, self._render_buffer(self._buffer[:])) - del self._buffer[:] + if self._buffer: + display(self._buffer, self._render_buffer(self._buffer[:])) + del self._buffer[:] else: if WINDOWS: use_legacy_windows_render = False