Skip to content

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

Open
@prajyoti

Description

@prajyoti

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions