Giter VIP home page Giter VIP logo

Comments (9)

manrajgrover avatar manrajgrover commented on August 25, 2024

@vidyarani-dg We do have an option for enabling and disabling the spinner. I believe you can disable it in your test environment using this.

from halo.

vidyarani-dg avatar vidyarani-dg commented on August 25, 2024

I see , thanks! It's clearly in the initialization. Sorry, I missed it.

Will close this issue.

from halo.

manrajgrover avatar manrajgrover commented on August 25, 2024

@vidyarani-dg Did it work as per your requirement?

from halo.

vidyarani-dg avatar vidyarani-dg commented on August 25, 2024

@manrajgrover : Apologies for the tardiness in getting back to you, I did try

Halo(text='Loading files', enabled=False)

It did disable the info messages, however the errors are still outputting to the terminal.

Is this how it is supposed to work ?

from halo.

manrajgrover avatar manrajgrover commented on August 25, 2024

@vidyarani-dg Which errors are being outputted? I would need more information in order to assist.

from halo.

vidyarani-dg avatar vidyarani-dg commented on August 25, 2024

@manrajgrover : Sorry, the failure messages . For instance, this is how I am using the spinner.

With enabled=False, I do not see any of the success / text messages on the terminal, however I do see the failure messages.

spinner = Halo(text='Loading files', spinner='dots', enabled=False)
spinner.start()


for row in rows:
    spinner.text = 'Processing line {}'.format(row.rownum)
    try:
        load(row)
    except Exception:
        spinner.fail("Error loading row {}".format(message)) # -> This is outputted to the terminal. 
        spinner.start()

spinner.succeed('Load successful, time taken in seconds: {}'.format((end - start).seconds))
spinner.stop()

from halo.

manrajgrover avatar manrajgrover commented on August 25, 2024

@vidyarani-dg Got it. Thanks for reporting this. I'll fix this and notify you with the release.

from halo.

vidyarani-dg avatar vidyarani-dg commented on August 25, 2024

Thank you.

from halo.

manrajgrover avatar manrajgrover commented on August 25, 2024

@vidyarani-dg Made a release with fix in v0.0.11. Please upgrade and check if it works as expected.

from halo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.