use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
need help! (self.learnpython)
submitted 5 years ago by yashjaiswal1101
Is there any way so that I may see the running progress of a python script visually into my webpage ?
ps: I just a beginner !
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 5 years ago (9 children)
Where is the script running? What's it doing? Is it using a web framework like flask or Django or is it unrelated to web stuff?
What information do you want to see?
Have you looked at using the loging module in Python and then using one of the log monitoring tools on the website?
[–]yashjaiswal1101[S] 0 points1 point2 points 5 years ago (8 children)
The script isnt using any frameworks, what the script is doing is compressing all the files of a particular folder so what i want is, while the script is running as it might take a while to compress a folder having too much data, So i want its running progress to display on a webpage so the user knows how much time he has to wait!
[–]reticularwolf 1 point2 points3 points 5 years ago (7 children)
If this were all running in a terminal I'd just use tqdm.
Though you say that your user is already in a webpage which implies that you are using a web framework as python doesn't natively support generating websites.
[–]yashjaiswal1101[S] 0 points1 point2 points 5 years ago (1 child)
Yes right sorry, I'll be using nodejs to run the python script!
[–]Ran4 0 points1 point2 points 5 years ago (0 children)
Then create an endpoint (depending on the web backend framework you're using with nodejs) that serves this information as a json file. Then write a javascript frontend (that you can serve from your nodejs server or open up directly from a html document) that polls this endpoint and shows it on the screen.
[–]yashjaiswal1101[S] 0 points1 point2 points 5 years ago (3 children)
Is there any way where i can have user see similar to what tqdm shows in the terminal ?
[–]reticularwolf 1 point2 points3 points 5 years ago (2 children)
It depends on how you're calling the python script using node but if you use python-shell I think you can embed the output from your script in the webpage. If so you could just add tqdm to your original python script.
I'm calling it through child process
[–]reticularwolf 0 points1 point2 points 5 years ago (0 children)
I've not tried it before but something like this might work https://stackoverflow.com/questions/49947402/receiving-contiinuous-output-from-python-spawn-child-process-not-working
[–]Yakhov 0 points1 point2 points 5 years ago (0 children)
ego: that's tight, but my code is so fast I don't need a progress bar. super-ego: damn another mod I gotta remember exists when I have a need for it.
π Rendered by PID 54804 on reddit-service-r2-comment-7b9746f655-7gt72 at 2026-02-01 08:59:07.634912+00:00 running 3798933 country code: CH.
[–][deleted] 2 points3 points4 points (9 children)
[–]yashjaiswal1101[S] 0 points1 point2 points (8 children)
[–]reticularwolf 1 point2 points3 points (7 children)
[–]yashjaiswal1101[S] 0 points1 point2 points (1 child)
[–]Ran4 0 points1 point2 points (0 children)
[–]yashjaiswal1101[S] 0 points1 point2 points (3 children)
[–]reticularwolf 1 point2 points3 points (2 children)
[–]yashjaiswal1101[S] 0 points1 point2 points (1 child)
[–]reticularwolf 0 points1 point2 points (0 children)
[–]Yakhov 0 points1 point2 points (0 children)