Questions tagged [tqdm]

Questions related to progress bar tqdm usage in Python or shell.

tqdm is a Python progress bar working both under Python scripts and Unix-like shells.

Resources:

571 questions
-1
votes
1 answer

tqdm Multithreading Random Duplicate Progress Bars

I'm trying to have a progress bar for each json I translate but I'm getting random duplication errors using tqdm. I'm guessing race conditions but I can't figure out why. main(): # Open File (Threads) with…
DazedFury
  • 59
  • 9
-1
votes
1 answer

Can't get stqdm() to work in a for loop in a streamlit app

I've been trying to incorporate the stqdm status bar in the dev branch of my streamlit app and can't get around the error message below. I've wrapped the for loop in the df_create() function in main.py with the stqdm() method but I don't think this…
June Smith
  • 163
  • 1
  • 11
-1
votes
1 answer

How do display a progress bar for each thread

I have a class that, calls a method from other and execute it in parallel, the function that is executed has a for loop that iterates over a dataframe. How can I display a progress bar for each thread? class App: otherClass = OtherClass() …
Tiago Silveira
  • 267
  • 4
  • 14
-1
votes
1 answer

Error with docx2pdf after compiling using pyinstaller

I compiled a script (running smoothly) that I made in python using Pyinstaller, but the function that converts from word to pdf is stopping the code. The error: File "docx2pdf\__init__.py", line 106, in convert File "docx2pdf\__init__.py", line…
-1
votes
1 answer

tqdm one progress bar for each row from .xlsx sheet

I wrote a script that reads and performs some data manipulation on each row from Excel Sheet. I want to see a progress bar that shows the whole progress of the operation. As you can see in the image, the progress bar is shown after every…
jabbar
  • 23
  • 4
-1
votes
1 answer

Display in terminal dinamically updated text in-place (similar to how 'tqdm' package shows a progress bar)

I need: Dynamically in-place display some string in terminal while my script is running. Similar to how 'tqdm' package shows progress bar in-place in terminal. I do NOT need: display progress bar use huge bloated frameworks to build GUI…
Nairum
  • 1,217
  • 1
  • 15
  • 36
-1
votes
1 answer

Why is there a huge difference in processing time in resizing images when using tqdm?

I'm resizing my image for my thesis on Google colab. But there's a huge time difference when I'm using tqdm and when I'm not using it. Here's the code when I'm using tqdm: import glob import os from tqdm import tqdm import math from PIL import…
-1
votes
1 answer

ImportError: cannot import name 'auto' from 'tqdm'

My Python version is 3.7.0 version To import tensorflow_datasets, import tensorflow_datasets I ran the code, but: ImportError: cannot import name 'auto' from 'tqdm' So, how can I import the auto? When I searched the auto library: ERROR : Could not…
jihye na
  • 21
  • 3
-1
votes
2 answers

Update a print result in a line and update its progressbar at the same time in python

I want to update a print result in a first line and update a progressbar in a second line. I made a python code, but my script prints a text line by line, but not update it in a line. How can I fix it? from tqdm import * import time total_num =…
Ahmed Mamdouh
  • 696
  • 5
  • 12
-1
votes
1 answer

Progress bar for a while loop that uses conditionals and also for - Python 3

I want to have a progress bar starting before the while loop and ending with it as follows: a = [ '1', '2', '3', '4', '5', '6'] ## This can be 10, 15, 1000 elements b = 5 c = [] timeout = time.time()…
happymatei
  • 113
  • 1
  • 12
-1
votes
1 answer

Not able to download all the images using request python

I have 1k of image urls in a csv file and I am trying to download all the images from the urls. I don't know why I am not able to download all the images. Here is my code: print('Beginning file download with requests') path =…
free_123
  • 79
  • 1
  • 1
  • 3
-1
votes
1 answer

Python tqdm TypeError: () takes 1 positional argument but 2 were given

I tried to create a progress bar to view progress of file transferring by using the below code. from tqdm import tqdm import pysftp cnopts = pysftp.CnOpts() cnopts.hostkeys = None srv =…
Harshana
  • 5,151
  • 1
  • 17
  • 27
-2
votes
1 answer

tqdm showing progress bar properties instead of actual progress bar

When I run tqdm on colab, I get the expected progress bar output. But when I run it on my laptop, I get an output showing a description of the progress, bar but not the actual progress bar What is going on, any advice on how to fix it? I simply…
Paradox
  • 1,935
  • 1
  • 18
  • 31
-2
votes
1 answer

Tried to use the walrus operator on a unsupported version of python

so this works on my pc running v3.8.5 but on my pc with python v3.7.3 it throws a syntax error and points to ' := ' as the error. ls = ['hi', 'hello', 'bye', 'goodbye', 'adios'] for i in (t := tqdm(ls, ncols=103, leave=False, ascii=' #')): …
drebrb
  • 70
  • 1
  • 6
-2
votes
2 answers

how can i use tqdm to visualize the progress of training steps using tf.data.Dataset api?

I want to use tqdm to visualize my cnn network training steps. How can I implement tqdm with tf.data.Dataset() api? Can u show me a sample code? thx!
mr.melon
  • 21
  • 1
  • 7
1 2 3
38
39