From 7feb1f4b9c97bc43f09fe4843e2bb021914e658a Mon Sep 17 00:00:00 2001 From: "Sean P. Kane" Date: Thu, 5 Feb 2026 13:45:47 -0800 Subject: [PATCH] fix: 'NBMasterBar' object has no attribute 'out' --- fastprogress/fastprogress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastprogress/fastprogress.py b/fastprogress/fastprogress.py index bc3041c..132715b 100644 --- a/fastprogress/fastprogress.py +++ b/fastprogress/fastprogress.py @@ -231,7 +231,7 @@ def show(self): self.inner_dict['text'] = Div(*self.text_parts) children = [getattr(item, 'progress', None) or item for n in self.order if (item := self.inner_dict.get(n))] - self.out.update(Div(*children)) + if hasattr(self, 'out'): self.out.update(Div(*children)) def write(self, line, table=False): if table: self.lines.append(line); self.text_parts = [text2html_table(self.lines)]