TiesdeKok / ipystata

Enables the use of Stata together with Python via Jupyter (IPython) notebooks.
192 stars 66 forks source link

Stata 17 `pystata` package #48

Open amichuda opened 3 years ago

amichuda commented 3 years ago

Stata 17 is going to be released with a way to run stata from scripts and with Jupytet magics. Is there any relation between that and your package at all?

pacbard commented 3 years ago

I can't find pystata's source code, so I imagine that it remains a closed source package.

For what is worth, ipystata is cited as an inspiration for pystata.

amichuda commented 3 years ago

Ah okay, good to know. I didn't check the acknowledgements. At least there's that I guess.

TiesdeKok commented 3 years ago

Hi @amichuda,

The pystata implementation is internally developed by Stata without my involvement. I am still waiting for my Stata 17 license to arrive, so I haven't been able to test it myself yet, but it looks like the native Stata implementation will fully replace the need for ipystata, which is great!

Once I get my hands on Stata 17 I will do some tests to make sure this is the case and also figure out whether additional steps are needed to avoid conflicts (given that we both use the same %stata magic namespace).

I will keep this repository available for those without the ability to upgrade Stata 17.

Ties

Gritbadger commented 2 years ago

Thanks for sharing your program. I have combined your ipystata program with stata17mp and it works perfectly. There is a bug that the system automatically saves the image to .ipython/stata after each drawing, and every time I re-call %%stata to execute the command, this saved image will be automatically displayed in the jupyter notebook, although I Executing stata commands has nothing to do with plotting. Can you fix this?