question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ETA as Input (Feature)

See original GitHub issue

I may have missed it, but I haven’t been able to find this functionality in main or 2.0.

We have a case where we have a long single step (HTTP post). Currently in main I’m trying an unknown spinner, and adding the title “ETA 50seconds”. It would be great to input an ETA like: with alive_bar(eta=50,...) as bar:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
TheTechRobocommented, Jun 1, 2021

That makes sense, since sometimes you don’t want alive-progress to handle it, and also unknown mode can still work with it, for example if it is searching through directories, it might be done 90% of the changes and you can assume that it is only a small amount of time left (relatively), and so even in unknown mode ETA can be useful. Agree fully!

0reactions
rsalmeicommented, May 6, 2022

I don’t see any problem in calling bar() multiple times. Remember this is the way to make the bar go forward. I think it’d be very weird to make a progress bar update itself automatically. Any progress bar change should always be a response from an active call by the user.

In your case, I’d create a background thread, and display a cool alive-progress being updated every second. You could use the definite mode as usual, and increment it until the desired time, or even better, you could use the manual mode to make it backward from 50 to 0, clearly indicating to the user it is the expected time remaining!

Can’t make much more than this man. Hope it works! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is ETA in deep learning? - Quora
In deep learning, ETA is used to estimate the time required to train a neural network. Neural networks are a type of artificial...
Read more >
A look into ETA Problem using Regression in Python - Folio3.Ai
The term ETA here refers to the Estimated Completion Time of a computational process. A look into ETA Problem using regression in python....
Read more >
Exploration and Practice of Deep Learning Application in ...
This article summarizes the exploration and practice of applying deep learning to predict estimated time of arrival (ETA) in AMAP.
Read more >
DeepETA: How Uber Predicts Arrival Times Using Deep ...
At Uber, magical customer experiences depend on accurate arrival time predictions (ETAs). We use ETAs to calculate fares, estimate pickup ...
Read more >
DeeprETA: An ETA Post-processing System at Scale - arXiv
DeeprETA: An ETA Post-processing System at Scale. Algorithm 1 Map geospatial features to indexes. Inputs: origin o, destination d, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found