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

Progress prints an empty line after finishing in jupyter #2616

Closed
wants to merge 0 commits into from

Conversation

cceyda
Copy link
Contributor

@cceyda cceyda commented Oct 26, 2022

Type of changes

  • Bug fix

Checklist

  • I've run the latest black with default args on new code.
  • I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
  • I've added tests for new code.
  • I accept that @willmcgugan may be pedantic in the code review.

Description

More of a cosmetic fix than a bugfix, but the extra lines were just not fun to look at.
In notebooks 2 extra empty lines were printed after the progress bar finished (where console.is_jupyter) as seen below:
image

It is even more visible in vs-code:
image

There is still one empty line being printed at the end, but I suspect that maybe a well known ipywidgets problem. ref: jupyter-widgets/ipywidgets#2880

tested it manually 👀 in vs-code(latest: 1.72.2), jupyterlab, and google colab(it was never printing empty lines)

@cceyda cceyda changed the title Progress prints an empty line after finishing Progress prints an empty line after finishing in jupyter Oct 26, 2022
Copy link

@alexisthual alexisthual left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but you need to pull main.
Very interested in seeing this merged as I have a storm of newlines in my vscode interactive windows 😊
It'd be nice to see where the remaining new line comes from as well.

@cceyda
Copy link
Contributor Author

cceyda commented Mar 8, 2023

@alexisthual I accidently closed the PR during main sync, reopened here #2867
(just realizing I could have re-opened this, didn't know that was possible 😅 )

@alexisthual
Copy link

No worries, let's jump there!

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

Successfully merging this pull request may close these issues.

2 participants