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

After adding new cell between %%stata magic cells, output of %%stata disappears #575

Open
prajyoti opened this issue Sep 17, 2024 · 0 comments

Comments

@prajyoti
Copy link

prajyoti commented Sep 17, 2024

Description
!pip install --upgrade --user stata_setup
import stata_setup
stata_setup.config('/home/Stata', 'mp') # I have Stata installed in this folder

Let's say I have two cells to start with
Cell 1

%%stata
sysuse auto, clear
summarize
list in 1/3

Cell 2

%%stata
reg mpg price i.foreign

Output of both cells is printed.

Now if I add a cell between 1 and 2 and run it.
Cell 1.5

%%stata
des

The cells gets executed as indicated by the green check, but the output is not displayed. Running other cells with %% stata magic after this also doesn't display any output.

Attachments:

  1. Before: Shows 2 cells for which output is displayed
  2. After: After adding and running cell 26 in between the two cells, the output is not displayed. Running previously run cells again and the output disappears. Cell 29 prints output confirming that issue is only with %% stata magic commands.

Version: 1.89.1
Commit: ea608a0
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:129.0) Gecko/20100101 Firefox/129.0
Embedder: openvscode-server

Before
After

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

1 participant