From 92631dedfd6a29fcae0ebe205045e061f38ff6c6 Mon Sep 17 00:00:00 2001 From: Guilherme Ruiz <57478888+guigoruiz1@users.noreply.github.com> Date: Sat, 25 Nov 2023 23:32:02 +0000 Subject: [PATCH 1/2] fix for ipython>8.17.0 --- halo/halo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/halo/halo.py b/halo/halo.py index 9e10b66..883b350 100644 --- a/halo/halo.py +++ b/halo/halo.py @@ -99,7 +99,7 @@ def __init__( environment = get_environment() - def clean_up(): + def clean_up(args): """Handle cell execution""" self.stop() From f18237282474c4df32a2ed9d97bac3899b80ed00 Mon Sep 17 00:00:00 2001 From: Guilherme Ruiz <57478888+guigoruiz1@users.noreply.github.com> Date: Tue, 5 Dec 2023 22:15:12 +0000 Subject: [PATCH 2/2] Update halo_notebook.py Close widget on clear --- halo/halo_notebook.py | 1 + 1 file changed, 1 insertion(+) diff --git a/halo/halo_notebook.py b/halo/halo_notebook.py index 753fd7a..2585008 100644 --- a/halo/halo_notebook.py +++ b/halo/halo_notebook.py @@ -53,6 +53,7 @@ def clear(self): self.output.outputs += self._output(self.CLEAR_LINE) self.output.outputs = self._output() + self.output.close() return self def _render_frame(self):