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.

Synchronous spinner

See original GitHub issue

Support synchronous spinners which switch frames upon explicit request from a working thread like.

with Halo(spinner='dots') as spinner:
  for f in files_to_load():
    spinner.next(text="Loading %s" %f) # or .step(), or .tick(), or…
    do_load_file(f)

This can (as far as I understand) be achieved with .frame() but isn’t as concise as the above. Possibly don’t render new frame more often than interval.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
JungWintercommented, Feb 16, 2018

How about this way? I think it can do what you want.

with Halo(spinner='dots') as spinner:
   for f in files_to_load():
        spinner.text = 'Loading {}'.format(f)
        do_load_file(f)
0reactions
foster999commented, Sep 5, 2020

Happy to update #132 and check it still works, if the feature might still be of interest @manrajgrover?

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Set Cup Turner motor Synchronous Synchron Motor ...
6 Set Cup Turner motor Synchronous Synchron Motor Turntable Motor Electric Synchron Motor for Cuptisserie, Tumbler Cup Rotator,Cup Spinner machine with 7mm ...
Read more >
Display a spinner while sending a sync Ajax request
I know it is better to do it in asynchronous mode but I'm not allow to do it. I also know sync ajax...
Read more >
Synchronous multipass spinning of oblique-bottom shape
1). Synchronous multipass spinning is a combination of multipass spinning, which progressively performs forming from a flat blank in multiple steps, and ...
Read more >
A Synchronous Spin-Exchange Optically Pumped NMR ...
The production of longitudinal spin-exchange fields and the systematic uncertainty inherent to them is greatly suppressed by synchronous spin- ...
Read more >
4PCS Synchronous Motor Set for Tumbler Spinner Cup ...
Multiple applications: Widely Used for cup turner,cuptisserie, Tumbler cup rotator, heater machine, christmas tree, Dynamic Visualizer ,Arts & Crafts ...
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