Skip to content
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

Stata 18.5/Now support #45

Open
hugetim opened this issue Apr 30, 2024 · 2 comments
Open

Stata 18.5/Now support #45

hugetim opened this issue Apr 30, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@hugetim
Copy link
Owner

hugetim commented Apr 30, 2024

"StataNow" adds some additional options to pystata: https://www.stata.com/python/pystata18/config.html

In particular, set_command_show supersedes the no-command-echo functionality which accounts for the bulk of nbstata's code. This enhancement should make no-echo nbstata more reliable and also a bit faster. My plan is for nbstata to use this new functionality when available (pystata version 0.1.2) but replace it with nbstata's built-in no-echo support otherwise. (But nbstata's built-in custom support should probably now be labeled deprecated.)

Hopefully we'll also be able to find a way to use the new autocomplete support within an nbstata kernel, as well as the new %help magic.

I don't currently have access to StataNow, though, and I'm unsure when I will get it, so I won't be able to work on this myself for a while.

@hugetim hugetim added the enhancement New feature or request label Apr 30, 2024
@ticoneva
Copy link

ticoneva commented Jun 4, 2024

I have just installed StataNow/Stata 18.5 and tested this feature. In this newest version, the effect of the echo option in pystata.stata.run() has changed: in previous versions, echo only affects command display when executing a single line of Stata code, while in the newest version, it affects all code blocks. In other words, there is no longer a distinction between single-line and multi-line code blocks.

set_command_show simply provides a way for the effect to be persistent.

@hugetim
Copy link
Owner Author

hugetim commented Jun 4, 2024

Thanks. I really appreciate you letting me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants