Skip to content

🚀[FEA]: Add options to turn off tqdm in earth2studio.run #529

@nbren12

Description

@nbren12

Is this a new feature, an improvement, or a change to existing functionality?

New Feature

How would you describe the priority of this feature request

Medium

Please provide a clear description of problem you would like to solve.

The earth2studio run APIs are quite nice, but a bit too noisy for use in pipelines since they have progress bars and their own colorized logging. A couple of suggestions.

  1. Add option to turn off the progress bar
  2. If stdout is not a TTY (os.isatty) then disable the progress bar by default.
  3. I would also consider deferring to the users logging settings. It seems like loguru is basically a frontend to standard python logging. I think it would be familiar to users to just use python logging, and let them control the appearance.

Overall, I think the current output looks nice, but since earth2studio is a library, I think it should be less opinionated about what gets printed to console, since application developers may want control over that.

Thanks for considering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions