Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Close widget box when clearing the spinner on jupyter notebook #175

Open
guigoruiz1 opened this issue Mar 3, 2023 · 0 comments

Comments

@guigoruiz1
Copy link
Contributor

guigoruiz1 commented Mar 3, 2023

Description

When using Halo in a Jupiter notebook, the widget leaves an object behind with non-zero height. This causes the output to be shifted down slightly every time a spinner is used. For example, if you try

print('test')
for i in tqdm(range(10),leave=False):
    with Halo() as spinner:
        time.sleep(0.5)

print('test')

you will see the second test way below the first rather than as second line.

A very easy fix for that is using spinner.output.close(), so I suggest adding that line to the clear function of the HaloNotebook object.

People to notify

@manrajgrover

@guigoruiz1 guigoruiz1 changed the title SUGGES Suggestion: Close widget box when clearing the spinner on jupyter notebook Mar 3, 2023
@guigoruiz1 guigoruiz1 mentioned this issue Sep 14, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant