Hello,
Apologies if this has been answered elsewhere - I've searched (here and in other places), but to no avail.
I have a Python script that I call from a do-file using the shell command (under Windows). The Python script works, but can take some time to complete. I would like to be able to update the user on the script's progress (something along the lines of periodically displaying a message like "XXX of YYY records processed").
I've tried to use a Python print command in hopes that the update message would print to the blue box that appears when I use the shell command (the one with the title bar that says "C:\Windows\System32\cmd.exe"), but that does not work.
Ideally, I'd be able to give progress updates that would allow the user to see how long the process might take, but even showing that the Python script is still running is better than nothing.
I'd be grateful for any suggestions or solutions that anyone might be able to offer.
Thanks,
Chip
Related Posts with Inform the user of Python script progress when called from Stata do-file.
line graph of row percentage by different groupsHi Statalist, I am trying to generate a line graph. I am using four variables. My outcome, which wo…
Generating new variables, sorted from a varlistI've been puzzling with this problem for hours, but I can't figure it out. Per observation, I need t…
Replacing observations by sum of other observations (same variable)Hello. I am trying to combine two observations in my dataset by replacing the value of a variable (…
xtreg, xtreg mle or xtmixed?Hello, I am having trouble understanding what the difference is between xtreg with random effects a…
Oaxaca_rif: How to account for indicator variablesHello, Does the oaxaca_rif command allow one to specify indicator variables (fixed effects)? If so,…
Subscribe to:
Post Comments (Atom)
0 Response to Inform the user of Python script progress when called from Stata do-file.
Post a Comment