nbstata icon indicating copy to clipboard operation
nbstata copied to clipboard

Stata 18.5/Now/19 support

Open hugetim opened this issue 1 year ago • 4 comments

"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 avatar Apr 30 '24 22:04 hugetim

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.

ticoneva avatar Jun 04 '24 04:06 ticoneva

Thanks. I really appreciate you letting me know.

hugetim avatar Jun 04 '24 19:06 hugetim