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

there is a bug ipystata work with stata17mp #51

Open
Gritbadger opened this issue Apr 18, 2022 · 2 comments
Open

there is a bug ipystata work with stata17mp #51

Gritbadger opened this issue Apr 18, 2022 · 2 comments

Comments

@Gritbadger
Copy link

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?

@Gritbadger
Copy link
Author

There is also another bug. In the cell where the magic command %%stata is located, according to the stata specification, when I apply "//" to annotate the stata command, the cell will jump out the "gbk codec can't decode..." error, and After jumping out of this error, it will jump out the same error when executing any %%stata magic command in the future, just like getting an infectious disease. In this case, I have to reinstall ipystata.

@TiesdeKok
Copy link
Owner

Hi @Gritbadger

With regards to the first issue, I don't see that behavior on my end, would you mind sharing an example notebook that illustrates the problem so that I can replicate it?

Regarding your second issue, unfortunately, Stata does not allow all types of commenting when running code interactively. If you want to add a comment you should use * not //. This is a limitation of Stata:

image

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

No branches or pull requests

2 participants