Skip to content

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

Open
@guigoruiz1

Description

@guigoruiz1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions