using tqdm in for loop
require 'tqdm'
-- Set the total number of iterations for the tqdm progress bar
local total_iterations = 100
-- Initialize the tqdm bar
local bar = tqdm.tqdm(total_iterations, "Progress")
-- Perform iterations in a for loop
for i = 1, total_iterations do
-- Perform some task or computation here
-- Update the tqdm bar for each iteration
bar:update()
end
-- Close the tqdm bar after the loop is complete
bar:close()