Hi @halox6000, To stop the progress bar output from tqdm
, you can use the disable
argument. Set it to True
to silence any tqdm output. In fact, it will not only hide the display but also skip the progress bar calculations entirely1. Hereโs an example of how to use it:
from tqdm import tqdm
import time
for i in tqdm(range(10), disable=True):
time.sleep(1)
In this example, the progress bar wonโt be displayed, and the output messages will be suppressed. You can adapt this approach to your specific use case in Databricks to prevent the โWrote X bytesโ messages from cluttering your logs. If you need to dynamically switch the behavior, consider adding a command-line argument to your scri...
1.
Happy coding! ๐
To ensure we provide you with the best support, could you please take a moment to review the response and choose the one that best answers your question? Your feedback not only helps us assist you better but also benefits other community members who may have similar questions in the future.
If you found the answer helpful, consider giving it a kudo. If the response fully addresses your question, please mark it as the accepted solution. This will help us close the thread and ensure your question is resolved.
We appreciate your participation and are here to assist you further if you need it!