Skip to content

Google colab print progress #330

Closed

Description

@cdiazbas

Hi!,

When sbi is used in Google Colab, the progress of the training (print of epochs ) does not work. However it works perfectly in my laptop.

It seems that Google colab does not show anything if the print is like print(idx, end="\r") but it does if print('\r', idx, end='').
Look also here. To check the behaviour just type this in a empty notebook:

import time

for idx in range(10):
    time.sleep(1)
    print(idx, end="\r")

for idx in range(10):
    time.sleep(1)
    print('\r', idx, end='')

Activity

  1. jan-matthis commented on Sep 14, 2020

    @jan-matthis
    Contributor

    Hi, thanks for spotting this and coming up with a fix! Would you be up for submitting a PR?

  2. added
    bug
    beginner friendly
    on Sep 14, 2020
  3. added
    hackathon
    on Dec 14, 2021
  4. linked a pull request that will close this issueFix progressbars for gcolab #615on Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

beginner friendlybughackathon

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions