-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cells with more than one command echo back all the commands #4
Comments
I have added a new option
Let me know if it works or not. |
Thanks for the quick response—this produces consistent behaviour, in that all cells now echo back the command, but it's the opposite of what I wanted. I'd like to suppress the echo in multi-command cells (which was the stata_kernel behaviour). In other words:
|
Unfortunately, there appears to be no way to do that directly through pystata—or Stata, for that matter. The workaround is to use a combination of quietly {
noisily: sysuse auto
noisily: tab foreign rep 78
} |
I spoke too soon. There is a way and it will be incorporated in the next version. |
Version 0.1.20 accepts |
Handling multi-line commands requires porting |
Thanks so much for writing this!
If you have a cell that contains more than one command, the output from Stata contains the full console, including each command. For example, here's what you get if you run two commands from one cell:
But if you break up the commands to one per cell you don't get the echo:
Based on the documentation forpystata.stata.run
it looks like the way to fix this is to wrap what's passed as itscode
parameter in"""
, which will make Stata treat the cell like a do-file.I'd write a PR for this but I don't know Python. Sorry!
The text was updated successfully, but these errors were encountered: