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.
Time variable - longitudinal analysisDear Stata users, I have a query about longitudinal analysis. I originally ran growth models with …
Combining two date variables into oneHi, I have a dataset with information from two different registers. The registers contain the same …
Variables not addingHere's the debugging output Code: = local mat_input"\" 1, 2, 2, rsex_matcell[2,2], rtable[1,5+2], r…
How to make the mean of my DV variable in order to run panel without year values repeatedHello every one, I am currently estimating a model in Stata 15, and I have a dataset in which I have…
Scheme economist Code: set scheme economist for graphs puts the y axis and its label on the right hand side of the g…
Subscribe to:
Post Comments (Atom)
0 Response to Inform the user of Python script progress when called from Stata do-file.
Post a Comment