fbdesignpro / sweetviz

Visualize and compare datasets, target values and associations, with one line of code.
MIT License
2.9k stars 273 forks source link

Add an argument to silence the progress bar #124

Closed LexABzH closed 9 months ago

LexABzH commented 1 year ago

Is it possible to add an argument to silence the progress bar ?

We want to use SweetViz in an automatique pipeline and store the report in a database. We already have a lot of logs in our process, hence we would love to get rid of the progress bar logs. We can deactivate tqdm before loading SweetViz, but that would also impact others parts of our process.

One solution might be to add an argument in DataframeReport.__init__ and set self.progress_bar to a fake logger.

fbdesignpro commented 9 months ago

@LexABzH thank you for your suggestion! It's not the first time it's been brought up and will be included in the next version coming up this week! Will update this when ready.

fbdesignpro commented 9 months ago

Added in 2.3.0, thanks again @LexABzH!

LexABzH commented 9 months ago

Thanks, I will try it :)

fbdesignpro commented 9 months ago

@LexABzH awesome, let me know if there are any issues with it!