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.
Endogeneity in double hurdle modelsHi everyone, I am trying to estimate a double hurdle model: Probit and lognormal (Craggs model), I …
Need help Mixed effect model for my PhD projectHello everyone, I will really appreciate if you kindly suggest me how to develop correct Mixed Effe…
Why is Hausman Test cannot work on my panel ARDL?I am doing panel ARDL on STATA and want to run a Hausman Test (command xtpmg) to determine which est…
Random slopes and random effects with melogit and xtmelogitmelogit CSES5govact c.CSES5corrupt c.income c.gini c.polstrust || E1003: CSES5corrupt I'm running a…
Loop opening txt file and create a variableHi all, I have a series of txt file stored in a folder. I would love to do the following (ideally …
Subscribe to:
Post Comments (Atom)
0 Response to Inform the user of Python script progress when called from Stata do-file.
Post a Comment