openvscode-server icon indicating copy to clipboard operation
openvscode-server copied to clipboard

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

Open prajyoti opened this issue 1 year ago • 2 comments

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: ea608a0ed84ae6c7adfc624903e44483e1e66bf5 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

prajyoti avatar Sep 17 '24 16:09 prajyoti